dsql.parser
Class ASTVariable

java.lang.Object
  extended bydsql.parser.SimpleNode
      extended bydsql.parser.DMNode
          extended bydsql.parser.ASTVariable
All Implemented Interfaces:
Assignable, Node

public class ASTVariable
extends DMNode
implements Assignable

A variable expression, e.g. $varx. Note that this is not the actual variable itself, which is stored in the document.


Field Summary
 
Fields inherited from class dsql.parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTVariable(int id)
          Constructor for the parser
ASTVariable(Parser p, int id)
          Constructor for the parser
 
Method Summary
 Value execute()
          Execute a Node
 java.lang.String getName()
           
 Value getValue()
           
 void setDocument(ASTDoc _doc)
           
 void setName(java.lang.String _name)
           
 void setValue(Value val)
           
 java.lang.String toString()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTVariable

public ASTVariable(int id)
Constructor for the parser


ASTVariable

public ASTVariable(Parser p,
                   int id)
Constructor for the parser

Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String _name)

setDocument

public void setDocument(ASTDoc _doc)

toString

public java.lang.String toString()
Overrides:
toString in class SimpleNode

getValue

public Value getValue()
               throws ExecuteException
Throws:
ExecuteException

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

setValue

public void setValue(Value val)
Specified by:
setValue in interface Assignable