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

Quick Search    Search Deep

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

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

public class RedimNode
extends DefaultNode

RedimNode handles the REDIM statement in vbscript.

Version:
0.9

Field Summary
private static org.apache.log4j.Category DBG
          Debugging class
(package private)  VarListNode dimensions
          List of new dimensions
(package private)  IdentNode ident
          Identifier of variable to redim
(package private)  boolean preserve
          Preserve the existing entries?
 
Constructor Summary
RedimNode(IdentNode ident, VarListNode dimensions, boolean preserve)
          Constructor.
 
Method Summary
(package private) static ArrayNode createArray(java.util.Vector vl, int index)
          Internal function which creates an array from a list of dimensions.
 void dump()
          Dumps the source representation of this node.
 java.lang.Object execute(AspContext context)
          Executes this node.
 VarListNode getDimensionList()
          Get the dimension list.
 IdentNode getIdent()
          Get the ident
 boolean isPreserve()
          Should this redimension preserve the values?
 
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

private static org.apache.log4j.Category DBG
Debugging class


ident

IdentNode ident
Identifier of variable to redim


dimensions

VarListNode dimensions
List of new dimensions


preserve

boolean preserve
Preserve the existing entries?

Constructor Detail

RedimNode

public RedimNode(IdentNode ident,
                 VarListNode dimensions,
                 boolean preserve)
Constructor.

Method Detail

getIdent

public IdentNode getIdent()
Get the ident


getDimensionList

public VarListNode getDimensionList()
Get the dimension list.


isPreserve

public boolean isPreserve()
Should this redimension preserve the values?


dump

public void dump()
          throws AspException
Dumps the source representation of this node.

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

createArray

static ArrayNode createArray(java.util.Vector vl,
                             int index)
                      throws AspException
Internal function which creates an array from a list of dimensions.