Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.tripi.asp
Class SelectNode  view SelectNode download SelectNode.java

java.lang.Object
  extended bycom.tripi.asp.SelectNode
All Implemented Interfaces:
Node

public class SelectNode
extends java.lang.Object
implements Node


Field Summary
(package private)  Node expr
           
(package private)  VarListNode statements
           
 
Constructor Summary
SelectNode(Node expr, VarListNode statements)
           
 
Method Summary
 void dump()
          Dumps the node representation in ASP textual format.
 java.lang.Object execute(AspContext context)
          Executes this node in the defined context.
 void prepare(AspContext context)
          Prepares the code for execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expr

Node expr

statements

VarListNode statements
Constructor Detail

SelectNode

public SelectNode(Node expr,
                  VarListNode statements)
Method Detail

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