public final class DetailAST extends antlr.CommonASTWithHiddenTokens
| Constructor and Description |
|---|
DetailAST() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(antlr.collections.AST ast) |
void |
addNextSibling(DetailAST ast)
Add next sibling.
|
void |
addPreviousSibling(DetailAST ast)
Add previous sibling.
|
boolean |
branchContains(int type)
Checks if this branch of the parse tree contains a token
of the provided type.
|
DetailAST |
findFirstToken(int type)
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 type)
Returns the number of direct child tokens that have the specified type.
|
int |
getColumnNo()
Gets column number.
|
DetailAST |
getFirstChild() |
DetailAST |
getLastChild()
Gets the last child node.
|
int |
getLineNo()
Gets line number.
|
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 ast) |
void |
initialize(antlr.Token tok) |
void |
setColumnNo(int columnNo)
Set column number.
|
void |
setFirstChild(antlr.collections.AST ast) |
void |
setLineNo(int lineNo)
Set line number.
|
void |
setNextSibling(antlr.collections.AST ast) |
String |
toString() |
decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getLine, getNumberOfChildren, getTokenNames, removeChildren, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpenpublic DetailAST()
public void initialize(antlr.Token tok)
initialize in interface antlr.collections.ASTinitialize in class antlr.CommonASTWithHiddenTokenspublic void initialize(antlr.collections.AST ast)
initialize in interface antlr.collections.ASTinitialize in class antlr.CommonASTWithHiddenTokenspublic void setFirstChild(antlr.collections.AST ast)
setFirstChild in interface antlr.collections.ASTsetFirstChild in class antlr.BaseASTpublic void setNextSibling(antlr.collections.AST ast)
setNextSibling in interface antlr.collections.ASTsetNextSibling in class antlr.BaseASTpublic void addPreviousSibling(DetailAST ast)
ast - DetailAST object.public void addNextSibling(DetailAST ast)
ast - DetailAST object.public void addChild(antlr.collections.AST ast)
addChild in interface antlr.collections.ASTaddChild in class antlr.BaseASTpublic int getChildCount()
public int getChildCount(int type)
type - the token type to matchpublic int getLineNo()
public void setLineNo(int lineNo)
lineNo - line number.public int getColumnNo()
public void setColumnNo(int columnNo)
columnNo - column number.public DetailAST getLastChild()
public boolean branchContains(int type)
type - a TokenTypetype.public DetailAST getPreviousSibling()
public DetailAST findFirstToken(int type)
type - 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–2018. All rights reserved.