dsql.parser
Class ASTNew

java.lang.Object
  extended bydsql.parser.SimpleNode
      extended bydsql.parser.DMNode
          extended bydsql.parser.ASTJava
              extended bydsql.parser.ASTNew
All Implemented Interfaces:
Node

public class ASTNew
extends ASTJava

Object creator, eg "new java.util.Vector()"


Field Summary
 
Fields inherited from class dsql.parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTNew(int id)
          Constructor for Parser
ASTNew(Parser p, int id)
          Constructor for Parser
 
Method Summary
 Value execute()
          Execute a Node
protected  java.lang.Class getClassObject()
           
protected  java.lang.reflect.Constructor getConstructor(java.lang.Class[] types)
           
protected  java.lang.String getConstructorsDefinition()
           
 java.lang.String getName()
           
protected  java.lang.Object newInstance(Value[] args)
           
 void setName(java.lang.String _className)
           
 
Methods inherited from class dsql.parser.ASTJava
executeParameters, getParametersClasses, parsAsObjects, typesToString
 
Methods inherited from class dsql.parser.DMNode
executeArgument, executeArgumentAsClass, executeArgumentColumnHolder, executeArgumentNonNull, executeArgumentRecordHolder, executeArgumentTable, executeWithCatch, executeXML, getArgument, getCaller, getDsqlParent, getLine, getRoot, getString, hasArgument, jjtInsertFirstChild, jjtSetChild, setCaller, setLine
 
Methods inherited from class dsql.parser.SimpleNode
dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTNew

public ASTNew(int id)
Constructor for Parser


ASTNew

public ASTNew(Parser p,
              int id)
Constructor for Parser

Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String _className)

execute

public Value execute()
              throws ExecuteException
Description copied from class: DMNode
Execute a Node

Specified by:
execute in class DMNode
Throws:
ExecuteException - If an error occurs during execution

newInstance

protected java.lang.Object newInstance(Value[] args)
                                throws ExecuteException
Throws:
ExecuteException

getConstructor

protected java.lang.reflect.Constructor getConstructor(java.lang.Class[] types)
                                                throws ExecuteException
Throws:
ExecuteException

getClassObject

protected java.lang.Class getClassObject()
                                  throws ExecuteException
Throws:
ExecuteException

getConstructorsDefinition

protected java.lang.String getConstructorsDefinition()
                                              throws ExecuteException
Throws:
ExecuteException