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

Quick Search    Search Deep

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

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

public class VarListNode
extends DefaultNode

This class contains a list of variables.


Field Summary
(package private)  org.apache.log4j.Category DBG
          Debugging context
(package private)  java.util.Vector vars
          List of variables
 
Constructor Summary
VarListNode()
          Constructor, empty list
 
Method Summary
 void append(java.lang.Object obj)
          Adds an element to the list
 void appendAll(VarListNode v)
          Adds all of the elements in another varlistnode to this varlistnode.
 void dump()
          Dumps the representation of this varlist
 java.lang.Object execute(AspContext context)
          Executes all of the elements in the variable list and returns a vector of the return values of each node.
 java.lang.Object get(int index)
          Obtains an element at the specified index
 void prepend(java.lang.Object obj)
          Inserts the element to the beginning of the list.
 int size()
          Returns the size of this list
 
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

org.apache.log4j.Category DBG
Debugging context


vars

java.util.Vector vars
List of variables

Constructor Detail

VarListNode

public VarListNode()
Constructor, empty list

Method Detail

append

public void append(java.lang.Object obj)
Adds an element to the list


appendAll

public void appendAll(VarListNode v)
Adds all of the elements in another varlistnode to this varlistnode.


prepend

public void prepend(java.lang.Object obj)
Inserts the element to the beginning of the list.


size

public int size()
Returns the size of this list


get

public java.lang.Object get(int index)
Obtains an element at the specified index


dump

public void dump()
          throws AspException
Dumps the representation of this varlist

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

execute

public java.lang.Object execute(AspContext context)
                         throws AspException
Executes all of the elements in the variable list and returns a vector of the return values of each node.

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