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

Quick Search    Search Deep

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

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

public class GetIndexNode
extends DefaultNode

This node handles the "map" expression in vbscript, such as Session("variable").

Version:
0.9

Field Summary
(package private) static org.apache.log4j.Category DBG
          Debugging category
(package private)  VarListNode expr
          Parameters to field expression
(package private)  boolean func
          Is this expression for functions only?
(package private)  Node ident
          Expression to obtain index of
 
Constructor Summary
GetIndexNode(Node ident, VarListNode expr)
          Constructor.
GetIndexNode(Node ident, VarListNode expr, boolean func)
          Constructor.
 
Method Summary
 void dump()
          Dumps the visual representation of this expression.
 java.lang.Object execute(AspContext context)
          Executes this node.
 VarListNode getExpression()
          Get the parameters.
 Node getIdent()
          Get the identifier.
 void setFunction(boolean isFunction)
          Set the function flag.
 
Methods inherited from class com.tripi.asp.DefaultNode
prepare
 
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
Expression to obtain index of


expr

VarListNode expr
Parameters to field expression


func

boolean func
Is this expression for functions only?

Constructor Detail

GetIndexNode

public GetIndexNode(Node ident,
                    VarListNode expr)
Constructor. Can be used for arrays, functions, and subroutines.


GetIndexNode

public GetIndexNode(Node ident,
                    VarListNode expr,
                    boolean func)
Constructor. Can be used to mark that subroutines not allowed.

Method Detail

getExpression

public VarListNode getExpression()
Get the parameters.


getIdent

public Node getIdent()
Get the identifier.


dump

public void dump()
          throws AspException
Dumps the visual representation of this expression.

Specified by:
dump in interface Node
Overrides:
dump in class DefaultNode

execute

public java.lang.Object execute(AspContext context)
                         throws AspException
Executes this node.

Specified by:
execute in interface Node
Overrides:
execute in class DefaultNode

setFunction

public void setFunction(boolean isFunction)
Set the function flag.