public final class DetailAST extends CommonAST
Constructor and Description |
---|
DetailAST() |
Modifier and Type | Method and Description |
---|---|
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(AST aAST) |
void |
initialize(Token aTok) |
void |
setFirstChild(AST aAST)
Sets this AST's first Child.
|
void |
setNextSibling(AST aAST)
Sets AST's next sibling.
|
String |
toString() |
decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
public void initialize(Token aTok)
initialize
in interface AST
initialize
in class CommonAST
public void initialize(AST aAST)
initialize
in interface AST
initialize
in class CommonAST
public void setFirstChild(AST aAST)
setFirstChild
in interface AST
setFirstChild
in class BaseAST
aAST
- the new first childpublic void setNextSibling(AST aAST)
setNextSibling
in interface AST
setNextSibling
in class BaseAST
aAST
- the new next siblingpublic void addChild(AST aAST)
public int getChildCount()
public DetailAST getParent()
public int getLineNo()
public int getColumnNo()
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 match