public class ConditionalNode extends ExpressionNode
constant, constant_value, expressiontext, imports, static_type, text
children, id, parent
Constructor and Description |
---|
ConditionalNode(jadex.javaparser.javaccimpl.ParserImpl p,
int id)
Create a node.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getValue(IValueFetcher fetcher)
Evaluate the expression in the given state
with respect to given parameters.
|
void |
precompile()
Check argument types, and precompute expression
when some children are constant.
|
java.lang.String |
toPlainString()
Create a string representation of this node and its subnodes.
|
appendText, equals, getConstantValue, getExpressionText, getParameters, getStaticType, getText, getUnboundParameterNodes, hashCode, isConstant, precompileTree, setConstant, setConstantValue, setExpressionText, setStaticType, setText, subnodeToString, throwEvaluationException, throwParseException, toString, toString
dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent
public ConditionalNode(jadex.javaparser.javaccimpl.ParserImpl p, int id)
p
- The parser.id
- The id.public void precompile()
precompile
in class ExpressionNode
public java.lang.Object getValue(IValueFetcher fetcher)
getValue
in interface IParsedExpression
getValue
in class ExpressionNode
params
- The parameters (string, value pairs), if any.public java.lang.String toPlainString()
toPlainString
in interface Node
toPlainString
in class ExpressionNode