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

Quick Search    Search Deep

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

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

public class SetValueNode
extends java.lang.Object
implements Node

SetValueNode implements setting of variables, the following construct:

 Set A = "Value"
 
And:
 A = "Value"
 


Field Summary
(package private) static org.apache.log4j.Category DBG
          Debugging category
(package private)  Node expr
          The identifier's new expression when executed
(package private)  Node ident
          The identifier we wish to set
(package private)  boolean setUsed
          Was the "SET" keyword used?
 
Constructor Summary
SetValueNode(Node ident, Node expr, boolean setUsed)
          Constructor.
 
Method Summary
 void dump()
          Dumps the debugging information about this node.
 java.lang.Object execute(AspContext context)
          Executes this node, setting the value of the node.
 Node getExpression()
          Gets the expression.
 Node getIdent()
          Gets the identifier which is being set.
 void prepare(AspContext context)
          Prepare this node for execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DBG

static org.apache.log4j.Category DBG
Debugging category


ident

Node ident
The identifier we wish to set


expr

Node expr
The identifier's new expression when executed


setUsed

boolean setUsed
Was the "SET" keyword used?

Constructor Detail

SetValueNode

public SetValueNode(Node ident,
                    Node expr,
                    boolean setUsed)
Constructor.

Method Detail

getIdent

public Node getIdent()
Gets the identifier which is being set.


getExpression

public Node getExpression()
Gets the expression.


dump

public void dump()
          throws AspException
Dumps the debugging information about this node.

Specified by:
dump in interface Node

prepare

public void prepare(AspContext context)
             throws AspException
Prepare this node for execution. This does nothing for a SetValueNode.

Specified by:
prepare in interface Node

execute

public java.lang.Object execute(AspContext context)
                         throws AspException
Executes this node, setting the value of the node.

Specified by:
execute in interface Node