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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.tripi.asp.DefaultNode
      extended bycom.tripi.asp.PackedCharArrayNode
All Implemented Interfaces:
MapNode, Node

public class PackedCharArrayNode
extends DefaultNode
implements MapNode

Implements a special version of an ArrayNode which will contain a read-only array of characters.


Field Summary
private static org.apache.log4j.Category DBG
          Debugging object
(package private)  char[] values
          Contents of this array
 
Constructor Summary
PackedCharArrayNode(char[] values)
          Constructor.
 
Method Summary
 java.lang.Object getIndex(VarListNode varlist, AspContext context)
          MapNode function to obtain the value of this array at an index.
 int getLBOUND(int dimension)
          Obtains the lower bound of this array, always zero
 int getUBOUND(int dimension)
          Obtains the number of elements in this array
 char[] internGetValues()
          Internal function to obtain the actual character array.
 
Methods inherited from class com.tripi.asp.DefaultNode
dump, execute, prepare
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.tripi.asp.Node
dump, execute, prepare
 

Field Detail

DBG

private static final org.apache.log4j.Category DBG
Debugging object


values

char[] values
Contents of this array

Constructor Detail

PackedCharArrayNode

public PackedCharArrayNode(char[] values)
Constructor.

Method Detail

getIndex

public java.lang.Object getIndex(VarListNode varlist,
                                 AspContext context)
                          throws AspException
MapNode function to obtain the value of this array at an index.

Specified by:
getIndex in interface MapNode

getUBOUND

public int getUBOUND(int dimension)
              throws AspException
Obtains the number of elements in this array

Specified by:
getUBOUND in interface MapNode

getLBOUND

public int getLBOUND(int dimension)
              throws AspException
Obtains the lower bound of this array, always zero

Specified by:
getLBOUND in interface MapNode

internGetValues

public char[] internGetValues()
Internal function to obtain the actual character array.