public class ArrayNode extends ExpressionNode
| Modifier and Type | Field and Description |
|---|---|
static int |
ARRAY
The array with content constructor.
|
static int |
ARRAY_DIMENSION
The empty array constructor.
|
protected int |
type
The node type.
|
constant, constant_value, expressiontext, imports, static_type, textchildren, id, parent| Constructor and Description |
|---|
ArrayNode(jadex.javaparser.javaccimpl.ParserImpl p,
int id)
Create an expression node.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Test if two nodes are equal.
|
int |
getType()
Get the node type.
|
java.lang.Object |
getValue(IValueFetcher fetcher)
Evaluate the expression in the given state
with respect to given parameters.
|
int |
hashCode()
Get the hash code for the node.
|
void |
precompile()
Precompute type, and perform checks.
|
void |
setType(int type)
Set the node type.
|
java.lang.String |
toPlainString()
Create a string representation of this node and its subnodes.
|
appendText, getConstantValue, getExpressionText, getParameters, getStaticType, getText, getUnboundParameterNodes, isConstant, precompileTree, setConstant, setConstantValue, setExpressionText, setStaticType, setText, subnodeToString, throwEvaluationException, throwParseException, toString, toStringdump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParentpublic static final int ARRAY
public static final int ARRAY_DIMENSION
protected int type
public ArrayNode(jadex.javaparser.javaccimpl.ParserImpl p,
int id)
p - The parser.id - The id.public void setType(int type)
type - The node type.public int getType()
public void precompile()
precompile in class ExpressionNodepublic java.lang.Object getValue(IValueFetcher fetcher)
getValue in interface IParsedExpressiongetValue in class ExpressionNodeparams - The parameters (string, value pairs), if any.public java.lang.String toPlainString()
toPlainString in interface NodetoPlainString in class ExpressionNodepublic boolean equals(java.lang.Object o)
equals in class ExpressionNodepublic int hashCode()
hashCode in class ExpressionNode