Package jadex.javaparser.javaccimpl
Class ParameterNode
java.lang.Object
jadex.javaparser.javaccimpl.SimpleNode
jadex.javaparser.javaccimpl.ExpressionNode
jadex.javaparser.javaccimpl.ParameterNode
- All Implemented Interfaces:
IParsedExpression
,Node
,Serializable
Parameter node representing a parameter.
Parameter values are supplied at evaluation time.
- See Also:
-
Field Summary
Fields inherited from class jadex.javaparser.javaccimpl.ExpressionNode
constant, constant_value, expressiontext, imports, static_type, text
Fields inherited from class jadex.javaparser.javaccimpl.SimpleNode
children, id, parent
-
Constructor Summary
ConstructorsConstructorDescriptionParameterNode
(jadex.javaparser.javaccimpl.ParserImpl p, int id) Create a node. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Test if two nodes are equal.Get unbound parameter nodes.getValue
(jadex.common.IValueFetcher fetcher) Evaluate the expression in the given state with respect to given parameters.int
hashCode()
Get the hash code for the node.Create a string representation of this node and its subnodes.Methods inherited from class jadex.javaparser.javaccimpl.ExpressionNode
appendText, getConstantValue, getExpressionText, getParameters, getStaticType, getText, isConstant, precompile, precompileTree, setConstant, setConstantValue, setExpressionText, setStaticType, setText, subnodeToString, throwEvaluationException, throwParseException, toString, toString
Methods inherited from class jadex.javaparser.javaccimpl.SimpleNode
dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent
-
Constructor Details
-
ParameterNode
public ParameterNode(jadex.javaparser.javaccimpl.ParserImpl p, int id) Create a node.- Parameters:
p
- The parser.id
- The id.
-
-
Method Details
-
getValue
Evaluate the expression in the given state with respect to given parameters.- Specified by:
getValue
in interfaceIParsedExpression
- Specified by:
getValue
in classExpressionNode
- Parameters:
params
- The parameters (string, value pairs), if any.- Returns:
- The value of the term.
-
toPlainString
Create a string representation of this node and its subnodes.- Specified by:
toPlainString
in interfaceNode
- Overrides:
toPlainString
in classExpressionNode
- Returns:
- A string representation of this node.
-
getUnboundParameterNodes
Get unbound parameter nodes.- Overrides:
getUnboundParameterNodes
in classExpressionNode
- Returns:
- The unbound parameter nodes.
-
equals
Test if two nodes are equal.- Overrides:
equals
in classExpressionNode
-
hashCode
public int hashCode()Get the hash code for the node.- Overrides:
hashCode
in classExpressionNode
-