public class TypeNode extends ExpressionNode
Modifier and Type | Field and Description |
---|---|
protected java.lang.ClassLoader |
classloader |
constant, constant_value, expressiontext, imports, static_type, text
children, id, parent
Constructor and Description |
---|
TypeNode(ParserImpl p,
int id)
Create an expression node.
|
Modifier and Type | Method and Description |
---|---|
void |
appendText(java.lang.String text)
Append to the token text.
|
boolean |
equals(java.lang.Object o)
Test if two nodes are equal.
|
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 the type.
|
java.lang.String |
toPlainString()
Create a string representation of this node and its subnodes.
|
getConstantValue, getExpressionText, getParameters, getStaticType, getText, getUnboundParameterNodes, isConstant, precompileTree, setConstant, setConstantValue, setExpressionText, setStaticType, setText, subnodeToString, throwEvaluationException, throwParseException, toString, toString
dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent
public TypeNode(ParserImpl p, int id)
p
- The parser.id
- The id.public void appendText(java.lang.String text)
appendText
in class ExpressionNode
text
- The text to append.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
public boolean equals(java.lang.Object o)
equals
in class ExpressionNode
public int hashCode()
hashCode
in class ExpressionNode