public class CastNode extends ExpressionNode
constant, constant_value, expressiontext, imports, static_type, textchildren, id, parent| Constructor and Description |
|---|
CastNode(jadex.javaparser.javaccimpl.ParserImpl p,
int id)
Create an expression 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()
Precompute the static type and check if cast is possible.
|
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, toStringdump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParentpublic CastNode(jadex.javaparser.javaccimpl.ParserImpl p,
int id)
p - The parser.id - The id.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 ExpressionNode