public class JavaAst extends AnnotatedAst
Constructor and Description |
---|
JavaAst()
Default constructor.
|
JavaAst(antlr.Token token)
Constructor which accepts and wrappers token.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSymbolicTokenType()
Returns the symbolic representation of this AST's token type.
|
java.lang.String |
lookupTokenName(int type)
Translates an integer value of a token type into the associated
human readable text representation.
|
int |
lookupTokenType(java.lang.String tokenName)
Translates a text representation of a token type into the
actual integer value.
|
absolutePath, ancestor, ancestor, ancestor, annotationCount, annotationKeys, annotationSize, brainwash, brainwash, clearAnnotations, clearIds, compareWith, compareWith, descendant, descendant, descendant, downPath, dumpTree, dumpTree, duplicate, duplicate, duplicateFresh, duplicateFresh, fixupParent, fixups, fixups, getAncestor, getAncestor, getAncestor, getAnnotation, getAnnotation, getAnnotationList, getChildAt, getColumn, getDepth, getDescriptiveTokenText, getFilename, getId, getImmediateChild, getImmediateChild, getIndexPos, getLastImmediateChild, getLeftShadowNode, getLine, getLocal, getNumChildren, getNumImmediateChildren, getNumImmediateChildren, getNumLeftSiblings, getNumRightSiblings, getParent, getPath, getPrevSibling, getRightShadowNode, getShadowNodeList, graft, graftAt, graftCopyTo, graftCopyTo, initialize, initialize, intern, isAncestorOf, isAnnotation, isHidden, isLeaf, isRoot, iterator, iterator, iterator, move, nearestEnclosing, putAnnotation, putAnnotation, putAnnotation, putAnnotation, putAnnotation, putAnnotation, putAnnotation, putAnnotation, putAnnotation, putAnnotationObject, relativePath, remove, removeAnnotation, removeAnnotation, setColumn, setHidden, setId, setLine, setLocal, setParent, sibling, toString, toStringVerbose, upPath
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addChild, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getText, getType, initialize, setFirstChild, setNextSibling, setText, setType, toStringList, toStringTree
public JavaAst()
public JavaAst(antlr.Token token)
token
- Token upon which this node is based.public int lookupTokenType(java.lang.String tokenName)
lookupTokenType
in interface Aast
lookupTokenType
in class AnnotatedAst
tokenName
- The text representation of the token type.public java.lang.String lookupTokenName(int type)
lookupTokenName
in interface Aast
lookupTokenName
in class AnnotatedAst
type
- The integer token type.null
if
no match was found.public java.lang.String getSymbolicTokenType()
getSymbolicTokenType
in interface Aast
getSymbolicTokenType
in class AnnotatedAst