public abstract class ListTreeImpl<T extends Tree> extends JavaTree implements ListTree<T>
JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImplgrammarRuleKey| Constructor and Description |
|---|
ListTreeImpl(org.sonar.sslr.grammar.GrammarRuleKey grammarRuleKey,
List<T> list) |
ListTreeImpl(org.sonar.sslr.grammar.GrammarRuleKey grammarRuleKey,
List<T> list,
List<SyntaxToken> separators) |
| 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) |
Iterable<Tree> |
children()
Creates iterable for children of this node.
|
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
T |
get(int index) |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
Tree.Kind |
kind() |
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) |
List<SyntaxToken> |
separators() |
T |
set(int index,
T element) |
int |
size() |
List<T> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
firstToken, getChildren, getGrammarRuleKey, getLine, is, isLeaf, lastToken, parent, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfirstToken, is, lastToken, parentequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic ListTreeImpl(org.sonar.sslr.grammar.GrammarRuleKey grammarRuleKey,
List<T> list)
public ListTreeImpl(org.sonar.sslr.grammar.GrammarRuleKey grammarRuleKey,
List<T> list,
List<SyntaxToken> separators)
public List<SyntaxToken> separators()
separators in interface ListTree<T extends Tree>public void accept(TreeVisitor visitor)
public Iterable<Tree> children()
JavaTreenull elements.public 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 extends Tree>containsAll in interface List<T extends Tree>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 extends Tree>public ListIterator<T> listIterator()
listIterator in interface List<T extends Tree>public ListIterator<T> listIterator(int index)
listIterator in interface List<T extends Tree>Copyright © 2012–2017 SonarSource. All rights reserved.