public final class DetailAstImpl extends antlr.CommonASTWithHiddenTokens implements DetailAST
DetailAST. This should only be directly used to
create custom AST nodes.| Constructor and Description |
|---|
DetailAstImpl() |
| 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.
|
DetailAstImpl |
getFirstChild()
Get the first child of this AST.
|
DetailAST |
getLastChild()
Gets the last child node.
|
int |
getLineNo()
Gets line number.
|
DetailAstImpl |
getNextSibling()
Get the next sibling in line after this one.
|
DetailAST |
getParent()
Returns the parent token.
|
DetailAST |
getPreviousSibling()
Returns the previous sibling or null if no such sibling exists.
|
boolean |
hasChildren()
Returns whether this AST has any children.
|
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, xmlSerializeRootOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNumberOfChildren, getText, getTypepublic DetailAstImpl()
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()
DetailASTgetChildCount in interface DetailASTpublic int getChildCount(int type)
DetailASTgetChildCount in interface DetailASTtype - the token type to matchpublic DetailAST getParent()
DetailASTpublic void setLineNo(int lineNo)
lineNo - line number.public int getColumnNo()
DetailASTgetColumnNo in interface DetailASTpublic void setColumnNo(int columnNo)
columnNo - column number.public DetailAST getLastChild()
DetailASTgetLastChild in interface DetailASTpublic boolean branchContains(int type)
DetailASTbranchContains in interface DetailASTtype - a TokenTypetype.public DetailAST getPreviousSibling()
DetailASTgetPreviousSibling in interface DetailASTpublic DetailAST findFirstToken(int type)
DetailASTfindFirstToken in interface DetailASTtype - the token type to matchpublic String toString()
toString in interface antlr.collections.ASTtoString in class antlr.BaseASTpublic DetailAstImpl getNextSibling()
DetailASTgetNextSibling in interface antlr.collections.ASTgetNextSibling in interface DetailASTgetNextSibling in class antlr.BaseASTpublic DetailAstImpl getFirstChild()
DetailASTgetFirstChild in interface antlr.collections.ASTgetFirstChild in interface DetailASTgetFirstChild in class antlr.BaseASTpublic boolean hasChildren()
DetailASThasChildren in interface DetailASTtrue if this AST has any children.Copyright © 2001–2020. All rights reserved.