public final class DetailAST
extends antlr.CommonASTWithHiddenTokens
| Constructor and Description |
|---|
DetailAST() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(antlr.collections.AST aAST) |
void |
addNextSibling(DetailAST aAST)
Add next sibling.
|
void |
addPreviousSibling(DetailAST aAST)
Add previous sibling.
|
boolean |
branchContains(int aType)
Checks if this branch of the parse tree contains a token
of the provided type.
|
DetailAST |
findFirstToken(int aType)
Returns the first child token that makes a specified type.
|
int |
getChildCount()
Returns the number of child nodes one level below this node.
|
int |
getChildCount(int aType)
Returns the number of direct child tokens that have the specified type.
|
int |
getColumnNo() |
DetailAST |
getFirstChild() |
DetailAST |
getLastChild() |
int |
getLineNo() |
DetailAST |
getNextSibling() |
DetailAST |
getParent()
Returns the parent token.
|
DetailAST |
getPreviousSibling()
Returns the previous sibling or null if no such sibling exists.
|
void |
initialize(antlr.collections.AST aAST) |
void |
initialize(antlr.Token aTok) |
void |
setColumnNo(int aColumnNo)
Set column number.
|
void |
setFirstChild(antlr.collections.AST aAST) |
void |
setLineNo(int aLineNo)
Set line number.
|
void |
setNextSibling(antlr.collections.AST aAST) |
String |
toString() |
decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getLine, getNumberOfChildren, getTokenNames, removeChildren, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpenpublic void initialize(antlr.Token aTok)
initialize in interface antlr.collections.ASTinitialize in class antlr.CommonASTWithHiddenTokenspublic void initialize(antlr.collections.AST aAST)
initialize in interface antlr.collections.ASTinitialize in class antlr.CommonASTWithHiddenTokenspublic void setFirstChild(antlr.collections.AST aAST)
setFirstChild in interface antlr.collections.ASTsetFirstChild in class antlr.BaseASTpublic void setNextSibling(antlr.collections.AST aAST)
setNextSibling in interface antlr.collections.ASTsetNextSibling in class antlr.BaseASTpublic void addPreviousSibling(DetailAST aAST)
aAST - DetailAST object.public void addNextSibling(DetailAST aAST)
aAST - DetailAST object.public void addChild(antlr.collections.AST aAST)
addChild in interface antlr.collections.ASTaddChild in class antlr.BaseASTpublic int getChildCount()
public DetailAST getParent()
public int getLineNo()
public void setLineNo(int aLineNo)
aLineNo - line number.public int getColumnNo()
public void setColumnNo(int aColumnNo)
aColumnNo - column number.public DetailAST getLastChild()
public boolean branchContains(int aType)
aType - a TokenTypeaType.public int getChildCount(int aType)
aType - the token type to matchpublic DetailAST getPreviousSibling()
public DetailAST findFirstToken(int aType)
aType - the token type to matchpublic String toString()
toString in interface antlr.collections.ASTtoString in class antlr.BaseASTpublic DetailAST getNextSibling()
getNextSibling in interface antlr.collections.ASTgetNextSibling in class antlr.BaseASTpublic DetailAST getFirstChild()
getFirstChild in interface antlr.collections.ASTgetFirstChild in class antlr.BaseASTCopyright © 2001-2014. All Rights Reserved.