public class List<T extends ASTNode> extends ASTNode<T> implements java.lang.Cloneable, java.lang.Iterable<T>
children, generatedWithCacheCycle, numChildren, parent| Modifier and Type | Method and Description |
|---|---|
List<T> |
add(T node) |
List<T> |
addAll(java.lang.Iterable<? extends T> c) |
void |
addChild(T node) |
List<T> |
clone() |
List<T> |
copy() |
void |
flushAttrCache() |
void |
flushCollectionCache() |
List<T> |
fullCopy()
Deprecated.
Please use treeCopy or treeCopyNoTransform instead
|
int |
getNumChild() |
void |
init$Children()
Initializes the child array to the correct size.
|
void |
insertChild(ASTNode node,
int i) |
protected boolean |
is$Equal(ASTNode node) |
java.util.Iterator<T> |
iterator() |
void |
removeChild(int i) |
List<T> |
treeCopy()
Create a deep copy of the AST subtree at this node.
|
List<T> |
treeCopyNoTransform()
Create a deep copy of the AST subtree at this node.
|
accept, astChildIterator, astChildren, doFullTraversal, flushAttrAndCollectionCache, flushCache, flushTreeCache, getChild, getChildNoTransform, getIndexOfChild, getNumChildNoTransform, getParent, getPosition, is$Equal, numChildren, resetState, rewrittenNode, setChild, setParent, setPosition, statepublic List()
public List(T... initialChildren)
public void init$Children()
init$Children in class ASTNode<T extends ASTNode>public void insertChild(ASTNode node, int i)
insertChild in class ASTNode<T extends ASTNode>public void removeChild(int i)
removeChild in class ASTNode<T extends ASTNode>public int getNumChild()
getNumChild in class ASTNode<T extends ASTNode>public java.util.Iterator<T> iterator()
public void flushAttrCache()
flushAttrCache in class ASTNode<T extends ASTNode>public void flushCollectionCache()
flushCollectionCache in class ASTNode<T extends ASTNode>@Deprecated public List<T> fullCopy()
public List<T> treeCopyNoTransform()
treeCopyNoTransform in class ASTNode<T extends ASTNode>public List<T> treeCopy()