public abstract class ListTreeImpl<T> extends JavaTree implements ListTree<T>
JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl| Constructor and Description |
|---|
ListTreeImpl(com.sonar.sslr.api.AstNode astNode) |
ListTreeImpl(com.sonar.sslr.api.AstNodeType type,
List<T> list,
List<com.sonar.sslr.api.AstNode> children) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TreeVisitor visitor) |
void |
add(int index,
T element) |
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
Iterator<Tree> |
childrenIterator()
Creates iterator for children of this node.
|
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
T |
get(int index) |
Tree.Kind |
getKind() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
boolean |
isLeaf() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T element) |
int |
size() |
List<T> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
addChild, getAstNode, getLine, is, isLegacy, prependChildren, prependChildrenfindChildren, findDirectChildren, findFirstChild, findFirstDirectChild, findFirstParent, getChild, getChildren, getChildren, getDescendants, getFirstAncestor, getFirstAncestor, getFirstChild, getFirstChild, getFirstDescendant, getFromIndex, getLastChild, getLastChild, getLastToken, getName, getNextAstNode, getNextSibling, getNumberOfChildren, getParent, getPreviousAstNode, getPreviousSibling, getToIndex, getToken, getTokenLine, getTokenOriginalValue, getTokens, getTokenValue, getType, hasAncestor, hasAncestor, hasChildren, hasChildren, hasDescendant, hasDirectChildren, hasParent, hasParents, hasToBeSkippedFromAst, hasToken, is, isCopyBookOrGeneratedNode, isNot, nextAstNode, nextSibling, previousAstNode, previousSibling, select, setFromIndex, setToIndex, toStringpublic ListTreeImpl(@Nullable com.sonar.sslr.api.AstNode astNode)
public void accept(TreeVisitor visitor)
public Iterator<Tree> childrenIterator()
JavaTreenull elements.childrenIterator in class JavaTreepublic int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(T e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface List<T>public boolean addAll(Collection<? extends T> c)
public boolean addAll(int index,
Collection<? extends T> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public int lastIndexOf(Object o)
lastIndexOf in interface List<T>public ListIterator<T> listIterator()
listIterator in interface List<T>public ListIterator<T> listIterator(int index)
listIterator in interface List<T>Copyright © 2012–2015 SonarSource. All rights reserved.