public final class TypeImpl extends NodeImpl implements Type
java.lang.Class instance which has been supplied by
the application. The following nodes have type instances as children:
CandidateClass
CastExpr
Decl
StaticFieldAccessExpr
The result type of a type instance is the wrapped java.lang.Class
instance. Type instances are not visible in query tree factory methods and
expression factory methods. They are internally created by in implementation
and are walked by a node visitor.| Constructor and Description |
|---|
TypeImpl()
The noarg constructor is needed for ANTLR support and deserialization.
|
TypeImpl(antlr.Token token)
The noarg constructor is needed for ANTLR support.
|
| Modifier and Type | Method and Description |
|---|---|
void |
arrive(NodeVisitor visitor)
Delegates to the argument
visitor. |
java.lang.String |
getTypeName()
Returns the string representation of the Java class,
which is wrapped by this instance.
|
java.lang.Object |
leave(NodeVisitor visitor,
java.lang.Object[] results)
Delegates to the argument
visitor. |
clone, getChildren, getJavaClass, getObject, getParent, getTokenType, setObject, setParent, toString, walkNextChildgetColumn, getLine, getTypeInfo, initialize, initialize, initialize, setColumn, setLine, setTypeInfo, treeToStringaddChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpenequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildren, getJavaClass, getObject, getParent, getTokenType, setObject, setParent, walkNextChildpublic TypeImpl()
setChildren optionally.public TypeImpl(antlr.Token token)
setChildren optionally.public java.lang.String getTypeName()
getTypeName in interface Typepublic void arrive(NodeVisitor visitor)
visitor.public java.lang.Object leave(NodeVisitor visitor, java.lang.Object[] results)
visitor.Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.