agg.attribute.parser.javaExpr
Class ASTArrayIndex

java.lang.Object
  extended by agg.attribute.parser.javaExpr.SimpleNode
      extended by agg.attribute.parser.javaExpr.ASTArrayIndex
All Implemented Interfaces:
Node, java.io.Serializable

public class ASTArrayIndex
extends SimpleNode

See Also:
Serialized Form

Field Summary
 
Fields inherited from class agg.attribute.parser.javaExpr.SimpleNode
children, classResolver, identifier, info, neverCalled, numberTypes, objectClass, parent, stack, stringClass, symtab, top
 
Method Summary
 void checkContext(SimpleNode arrayNode)
           
static java.lang.Class<?> getClassForName(java.lang.String name)
           
protected static java.lang.Class<?> getComponentClass(java.lang.Class<?> arrayClass)
          Since there is no possibilty to retrieve the component class of an array class directly as something like: int componentClass = java.lang.reflect.Array.getDimensionCount( anArrayClass), the textual representation of the considered array class is parsed in order to determine it's component class.
protected static int getNumDimensions(java.lang.Class<?> arrayClass)
          Since there is no possibilty to retrieve the dimension of an array class directly as something like: int dimensions = java.lang.reflect.Array.getNumDimensions( anArrayClass), the textual representation of the considered array class is parsed in order to determine it's dimension.
 java.lang.String getString()
          returns this node as a string with all children.
 void interpret(SimpleNode arrayNode)
           
static Node jjtCreate(java.lang.String id)
           
 
Methods inherited from class agg.attribute.parser.javaExpr.SimpleNode
checkContext, commonNumberType, copy, dump, getAllVariablesinExpression, getError, getIdentifier, getInfo, getNodeClass, getRootResult, getSymbolTable, hasNumberType, hasStringType, interpret, isAction, isArrayIndex, isConstantExpr, isMember, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, replaceChildWith, rewrite, setClassResolver, setInfo, setNodeClass, setSymbolTable, takeNodeClassFrom, toString, toString, typeCode, typeCode, typeInit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

jjtCreate

public static Node jjtCreate(java.lang.String id)

getClassForName

public static java.lang.Class<?> getClassForName(java.lang.String name)

getNumDimensions

protected static int getNumDimensions(java.lang.Class<?> arrayClass)
Since there is no possibilty to retrieve the dimension of an array class directly as something like: int dimensions = java.lang.reflect.Array.getNumDimensions( anArrayClass), the textual representation of the considered array class is parsed in order to determine it's dimension.


getComponentClass

protected static java.lang.Class<?> getComponentClass(java.lang.Class<?> arrayClass)
Since there is no possibilty to retrieve the component class of an array class directly as something like: int componentClass = java.lang.reflect.Array.getDimensionCount( anArrayClass), the textual representation of the considered array class is parsed in order to determine it's component class.


checkContext

public void checkContext(SimpleNode arrayNode)
                  throws ASTWrongTypeException
Throws:
ASTWrongTypeException

interpret

public void interpret(SimpleNode arrayNode)

getString

public java.lang.String getString()
Description copied from class: SimpleNode
returns this node as a string with all children. Subclasses must override this.

Specified by:
getString in interface Node
Overrides:
getString in class SimpleNode