com.puppycrawl.tools.checkstyle.api
public final class DetailAST extends CommonAST
Version: 1.0
See Also: ANTLR Website
Method Summary | |
---|---|
void | addChild(AST aAST)
Adds new child to AST. |
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 | getLastChild() |
int | getLineNo() |
DetailAST | getParent()
Returns the parent token. |
DetailAST | getPreviousSibling()
Returns the previous sibling or null if no such sibling exists. |
void | initialize(Token aTok) {@inheritDoc} |
void | initialize(AST aAST) {@inheritDoc} |
void | setFirstChild(AST aAST)
Sets this AST's first Child. |
void | setNextSibling(AST aAST)
Sets AST's next sibling. |
String | toString() {@inheritDoc} |
Parameters: aAST the new child
Parameters: aType a TokenType
Returns: true if and only if this branch (including this node)
contains a token of type aType
.
Parameters: aType the token type to match
Returns: the matching token, or null if no match
Returns: the number of child nodes
Parameters: aType the token type to match
Returns: the number of matching token
Returns: the column number *
Returns: the last child node
Returns: the line number *
Returns: the parent token
Returns: the previous sibling or null if no such sibling exists.
Parameters: aAST the new first child
Parameters: aAST the new next sibling