Package jadex.javaparser.javaccimpl
Class ArrayNode
- java.lang.Object
- 
- jadex.javaparser.javaccimpl.SimpleNode
- 
- jadex.javaparser.javaccimpl.ExpressionNode
- 
- jadex.javaparser.javaccimpl.ArrayNode
 
 
 
- 
- All Implemented Interfaces:
- IParsedExpression,- Node,- java.io.Serializable
 
 public class ArrayNode extends ExpressionNode A node representing an array to create.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intARRAYThe array with content constructor.static intARRAY_DIMENSIONThe empty array constructor.protected inttypeThe node type.- 
Fields inherited from class jadex.javaparser.javaccimpl.ExpressionNodeconstant, constant_value, expressiontext, imports, static_type, text
 - 
Fields inherited from class jadex.javaparser.javaccimpl.SimpleNodechildren, id, parent
 
- 
 - 
Constructor SummaryConstructors Constructor Description ArrayNode(jadex.javaparser.javaccimpl.ParserImpl p, int id)Create an expression node.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Test if two nodes are equal.intgetType()Get the node type.java.lang.ObjectgetValue(IValueFetcher fetcher)Evaluate the expression in the given state with respect to given parameters.inthashCode()Get the hash code for the node.voidprecompile()Precompute type, and perform checks.voidsetType(int type)Set the node type.java.lang.StringtoPlainString()Create a string representation of this node and its subnodes.- 
Methods inherited from class jadex.javaparser.javaccimpl.ExpressionNodeappendText, getConstantValue, getExpressionText, getParameters, getStaticType, getText, getUnboundParameterNodes, isConstant, precompileTree, setConstant, setConstantValue, setExpressionText, setStaticType, setText, subnodeToString, throwEvaluationException, throwParseException, toString, toString
 - 
Methods inherited from class jadex.javaparser.javaccimpl.SimpleNodedump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent
 
- 
 
- 
- 
- 
Field Detail- 
ARRAYpublic static final int ARRAY The array with content constructor.- See Also:
- Constant Field Values
 
 - 
ARRAY_DIMENSIONpublic static final int ARRAY_DIMENSION The empty array constructor.- See Also:
- Constant Field Values
 
 - 
typeprotected int type The node type.
 
- 
 - 
Method Detail- 
setTypepublic void setType(int type) Set the node type.- Parameters:
- type- The node type.
 
 - 
getTypepublic int getType() Get the node type.- Returns:
- The node type.
 
 - 
precompilepublic void precompile() Precompute type, and perform checks.- Overrides:
- precompilein class- ExpressionNode
 
 - 
getValuepublic java.lang.Object getValue(IValueFetcher fetcher) Evaluate the expression in the given state with respect to given parameters.- Specified by:
- getValuein interface- IParsedExpression
- Specified by:
- getValuein class- ExpressionNode
- Parameters:
- params- The parameters (string, value pairs), if any.
- Returns:
- The value of the term.
 
 - 
toPlainStringpublic java.lang.String toPlainString() Create a string representation of this node and its subnodes.- Specified by:
- toPlainStringin interface- Node
- Overrides:
- toPlainStringin class- ExpressionNode
- Returns:
- A string representation of this node.
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if two nodes are equal.- Overrides:
- equalsin class- ExpressionNode
 
 - 
hashCodepublic int hashCode() Get the hash code for the node.- Overrides:
- hashCodein class- ExpressionNode
 
 
- 
 
-