public class GGrammar extends ASTNode<ASTNode> implements java.lang.Cloneable
children, generatedWithCacheCycle, numChildren, parent| Modifier and Type | Method and Description |
|---|---|
void |
addGDecl(GDecl node)
Append an element to the GDecl list.
|
void |
addGDeclNoTransform(GDecl node) |
GGrammar |
clone() |
GGrammar |
copy() |
void |
flushAttrCache() |
void |
flushCollectionCache() |
GGrammar |
fullCopy()
Deprecated.
Please use treeCopy or treeCopyNoTransform instead
|
GDecl |
getGDecl(int i)
Retrieves the element at index
i in the GDecl list. |
List<GDecl> |
getGDeclList()
Retrieves the GDecl list.
|
List<GDecl> |
getGDeclListNoTransform()
Retrieves the GDecl list.
|
GDecl |
getGDeclNoTransform(int i) |
List<GDecl> |
getGDecls()
Retrieves the GDecl list.
|
List<GDecl> |
getGDeclsNoTransform()
Retrieves the GDecl list.
|
int |
getNumGDecl()
Retrieves the number of children in the GDecl list.
|
int |
getNumGDeclNoTransform()
Retrieves the number of children in the GDecl list.
|
boolean |
hasGDecl()
Check whether the GDecl 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 |
setGDecl(GDecl node,
int i)
Replaces the GDecl list element at index
i with the new node node. |
void |
setGDeclList(List<GDecl> list)
Replaces the GDecl list.
|
GGrammar |
treeCopy()
Create a deep copy of the AST subtree at this node.
|
GGrammar |
treeCopyNoTransform()
Create a deep copy of the AST subtree at this node.
|
accept, 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 ASTNode<ASTNode>protected int numChildren()
numChildren in class ASTNode<ASTNode>public void flushAttrCache()
flushAttrCache in class ASTNode<ASTNode>public void flushCollectionCache()
flushCollectionCache in class ASTNode<ASTNode>public GGrammar clone() throws java.lang.CloneNotSupportedException
@Deprecated public GGrammar fullCopy()
public GGrammar treeCopyNoTransform()
treeCopyNoTransform in class ASTNode<ASTNode>public GGrammar treeCopy()
public void setGDeclList(List<GDecl> list)
list - The new list node to be used as the GDecl list.public int getNumGDecl()
public int getNumGDeclNoTransform()
public GDecl getGDecl(int i)
i in the GDecl list.i - Index of the element to return.i in the GDecl list.public boolean hasGDecl()
true if it has at least one child, false otherwise.public void addGDecl(GDecl node)
node - The element to append to the GDecl list.public void addGDeclNoTransform(GDecl node)
public void setGDecl(GDecl 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="GDecl") public List<GDecl> getGDeclList()
public List<GDecl> getGDeclListNoTransform()
This method does not invoke AST transformations.
public GDecl getGDeclNoTransform(int i)
i in the GDecl list without
triggering rewrites.public List<GDecl> getGDecls()