|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.BaseAST
antlr.CommonAST
org.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST
org.apache.jdo.impl.jdoql.tree.NodeImpl
org.apache.jdo.impl.jdoql.tree.Expr
org.apache.jdo.impl.jdoql.tree.CastExpr
This node represents a cast expression. It has a result type and a child which corresponds with the expression to cast.
Field Summary |
Fields inherited from class org.apache.jdo.impl.jdoql.tree.NodeImpl |
children, clazz, msg, object, parent |
Fields inherited from class org.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST |
column, line, typeInfo |
Fields inherited from class antlr.CommonAST |
|
Fields inherited from class antlr.BaseAST |
down, right |
Constructor Summary | |
|
CastExpr()
The noarg constructor is needed for ANTLR support and deserialization. |
|
CastExpr(antlr.Token token)
The noarg constructor is needed for ANTLR support. |
(package private) |
CastExpr(Type type,
Expression expr)
This constructor is called by the query tree instance. |
Method Summary | |
void |
arrive(NodeVisitor visitor)
Delegates to the argument visitor . |
Expression |
getExpression()
Returns the node's cast expression. |
java.lang.String |
getTypeName()
Returns the string representation of the Java class, to which this node's expression is casted. |
java.lang.Object |
leave(NodeVisitor visitor,
java.lang.Object[] results)
Delegates to the argument visitor . |
Methods inherited from class org.apache.jdo.impl.jdoql.tree.NodeImpl |
ASTToChildren, clone, getChildren, getJavaClass, getObject, getParent, getTokenType, setChildren, setObject, setParent, toString, walkNextChild |
Methods inherited from class org.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST |
getColumn, getLine, getTypeInfo, initialize, initialize, initialize, setColumn, setLine, setTypeInfo, treeToString |
Methods inherited from class antlr.CommonAST |
getText, getType, initialize, setText, setType |
Methods inherited from class antlr.BaseAST |
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jdo.jdoql.tree.Node |
getChildren, getJavaClass, getObject, getParent, getTokenType, setObject, setParent, walkNextChild |
Constructor Detail |
public CastExpr()
setChildren
optionally.
public CastExpr(antlr.Token token)
setChildren
optionally.
CastExpr(Type type, Expression expr)
type
- the type instance wrapping the Java class to which
the argument expr
is castedexpr
- the expression to cast
JDOQueryException
- if the result type of expr cannot
be casted to clazzMethod Detail |
public java.lang.String getTypeName()
getTypeName
in interface CastExpression
public Expression getExpression()
getExpression
in interface CastExpression
public void arrive(NodeVisitor visitor)
visitor
.
arrive
in interface Node
arrive
in class NodeImpl
visitor
- the node visitorpublic java.lang.Object leave(NodeVisitor visitor, java.lang.Object[] results)
visitor
.
leave
in interface Node
leave
in class NodeImpl
visitor
- the node visitorresults
- the result array
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |