dsql.parser
Class ASTForEach
java.lang.Object
dsql.parser.SimpleNode
dsql.parser.DMNode
dsql.parser.ASTForEach
- All Implemented Interfaces:
- Node
- public class ASTForEach
- extends DMNode
A foreach statement, eg foreach $y in ... print $y
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASTForEach
public ASTForEach(int id)
- Constructor for the parser
ASTForEach
public ASTForEach(Parser p,
int id)
- Constructor for the parser
getVariable
public ASTVariable getVariable()
throws ExecuteException
- Throws:
ExecuteException
getTableValue
public RecordHolder getTableValue()
throws ExecuteException
- Throws:
ExecuteException
getAction
public DMNode getAction()
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
loop
public Value loop(ASTVariable var,
RecordHolder list,
DMNode action)
throws ExecuteException
- Throws:
ExecuteException