| Constructor and Description |
|---|
ASTNULLType() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(AST c)
Add a (rightmost) child to this node
|
boolean |
equals(AST t) |
boolean |
equalsList(AST t) |
boolean |
equalsListPartial(AST t) |
boolean |
equalsTree(AST t) |
boolean |
equalsTreePartial(AST t) |
ASTEnumeration |
findAll(AST tree) |
ASTEnumeration |
findAllPartial(AST subtree) |
int |
getColumn() |
AST |
getFirstChild()
Get the first child of this node; null if no children
|
int |
getLine() |
AST |
getNextSibling()
Get the next sibling in line after this one
|
int |
getNumberOfChildren()
Get number of children of this node; if leaf, returns 0
|
String |
getText()
Get the token text for this node
|
int |
getType()
Get the token type for this node
|
void |
initialize(AST t) |
void |
initialize(int t,
String txt) |
void |
initialize(Token t) |
void |
setFirstChild(AST c)
Set the first child of a node.
|
void |
setNextSibling(AST n)
Set the next sibling after this one.
|
void |
setText(String text)
Set the token text for this node
|
void |
setType(int ttype)
Set the token type for this node
|
String |
toString() |
String |
toStringList() |
String |
toStringTree() |
public void addChild(AST c)
ASTpublic boolean equalsList(AST t)
equalsList in interface ASTpublic boolean equalsListPartial(AST t)
equalsListPartial in interface ASTpublic boolean equalsTree(AST t)
equalsTree in interface ASTpublic boolean equalsTreePartial(AST t)
equalsTreePartial in interface ASTpublic ASTEnumeration findAll(AST tree)
public ASTEnumeration findAllPartial(AST subtree)
findAllPartial in interface ASTpublic AST getFirstChild()
ASTgetFirstChild in interface ASTpublic AST getNextSibling()
ASTgetNextSibling in interface ASTpublic String getText()
ASTpublic int getType()
ASTpublic int getNumberOfChildren()
ASTgetNumberOfChildren in interface ASTpublic void initialize(int t,
String txt)
initialize in interface ASTpublic void initialize(AST t)
initialize in interface ASTpublic void initialize(Token t)
initialize in interface ASTpublic void setFirstChild(AST c)
ASTsetFirstChild in interface ASTpublic void setNextSibling(AST n)
ASTsetNextSibling in interface ASTpublic void setText(String text)
ASTpublic void setType(int ttype)
ASTpublic String toString()
public String toStringList()
toStringList in interface ASTpublic String toStringTree()
toStringTree in interface ASTCopyright © 2017–2019 Eclipse Foundation. All rights reserved.