public class Terminals extends GDecl implements java.lang.Cloneable
children, generatedWithCacheCycle, numChildren, parent| Modifier and Type | Method and Description |
|---|---|
void |
accept(GVisitor vis) |
void |
addSym(GSym node)
Append an element to the Sym list.
|
void |
addSymNoTransform(GSym node) |
Terminals |
clone() |
Terminals |
copy() |
void |
flushAttrCache() |
void |
flushCollectionCache() |
Terminals |
fullCopy()
Deprecated.
Please use treeCopy or treeCopyNoTransform instead
|
int |
getNumSym()
Retrieves the number of children in the Sym list.
|
int |
getNumSymNoTransform()
Retrieves the number of children in the Sym list.
|
GSym |
getSym(int i)
Retrieves the element at index
i in the Sym list. |
List<GSym> |
getSymList()
Retrieves the Sym list.
|
List<GSym> |
getSymListNoTransform()
Retrieves the Sym list.
|
GSym |
getSymNoTransform(int i) |
List<GSym> |
getSyms()
Retrieves the Sym list.
|
List<GSym> |
getSymsNoTransform()
Retrieves the Sym list.
|
boolean |
hasSym()
Check whether the Sym list has any children.
|
void |
init$Children()
Initializes the child array to the correct size.
|
protected boolean |
is$Equal(ASTNode node) |
protected int |
numChildren() |
void |
setSym(GSym node,
int i)
Replaces the Sym list element at index
i with the new node node. |
void |
setSymList(List<GSym> list)
Replaces the Sym list.
|
Terminals |
treeCopy()
Create a deep copy of the AST subtree at this node.
|
Terminals |
treeCopyNoTransform()
Create a deep copy of the AST subtree at this node.
|
addChild, astChildIterator, astChildren, doFullTraversal, flushAttrAndCollectionCache, flushCache, flushTreeCache, getChild, getChildNoTransform, getIndexOfChild, getNumChild, getNumChildNoTransform, getParent, getPosition, insertChild, is$Equal, removeChild, resetState, rewrittenNode, setChild, setParent, setPosition, statepublic void init$Children()
init$Children in class GDeclprotected int numChildren()
numChildren in class GDeclpublic void flushAttrCache()
flushAttrCache in class GDeclpublic void flushCollectionCache()
flushCollectionCache in class GDeclpublic Terminals clone() throws java.lang.CloneNotSupportedException
@Deprecated public Terminals fullCopy()
public Terminals treeCopyNoTransform()
treeCopyNoTransform in class GDeclpublic Terminals treeCopy()
public void setSymList(List<GSym> list)
list - The new list node to be used as the Sym list.public int getNumSym()
public int getNumSymNoTransform()
public GSym getSym(int i)
i in the Sym list.i - Index of the element to return.i in the Sym list.public boolean hasSym()
true if it has at least one child, false otherwise.public void addSym(GSym node)
node - The element to append to the Sym list.public void addSymNoTransform(GSym node)
public void setSym(GSym node, int i)
i with the new node node.node - The new node to replace the old list element.i - The list index of the node to be replaced.@ASTNodeAnnotation.ListChild(name="Sym") public List<GSym> getSymList()
public List<GSym> getSymListNoTransform()
This method does not invoke AST transformations.
public GSym getSymNoTransform(int i)
i in the Sym list without
triggering rewrites.public List<GSym> getSyms()