java.lang.Object
com.tripi.asp.SelectNode
- All Implemented Interfaces:
- Node
- public class SelectNode
- extends java.lang.Object
- implements Node
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
expr
Node expr
statements
VarListNode statements
SelectNode
public SelectNode(Node expr,
VarListNode statements)
dump
public void dump()
throws AspException
- Description copied from interface:
Node
- Dumps the node representation in ASP textual format.
This function is primarily used for debugging, but it is recommended
that the node dump itself in a format which could be re-parsed as
valid code. Whitespace need not be preserved.
- Specified by:
dump in interface Node
prepare
public void prepare(AspContext context)
throws AspException
- Description copied from interface:
Node
- Prepares the code for execution. This includes defining global
functions and subroutines, setting global variables, and
any other preprocessing required. This procedure should be called
before execute(AspContext). As part of the preparation, it should call
prepare() on any child nodes it may use during execution.
- Specified by:
prepare in interface Node
execute
public java.lang.Object execute(AspContext context)
throws AspException
- Description copied from interface:
Node
- Executes this node in the defined context. This function should return
a valid Node or base type as a return value. It can return one of the
Exit... objects to signal the Asp server to exit the block, loop, etc.
Except in special cases, prepare(AspContext) should
be called before execute(AspContext)
- Specified by:
execute in interface Node