Iterable<T>
, Collection<T>
, List<T>
, ListTree<T>
, Tree
ArgumentListTreeImpl
, BlockStatementListTreeImpl
, BoundListTreeImpl
, FormalParametersListTreeImpl
, InitializerListTreeImpl
, LambdaParameterListTreeImpl
, ModifiersTreeImpl
, ModuleNameListTreeImpl
, ModuleNameTreeImpl
, QualifiedIdentifierListTreeImpl
, ResourceListTreeImpl
, StatementExpressionListTreeImpl
, TypeArgumentListTreeImpl
, TypeParameterListTreeImpl
, TypeUnionListTreeImpl
, VariableDeclaratorListTreeImpl
public abstract class ListTreeImpl<T extends Tree> extends JavaTree implements ListTree<T>
JavaTree.AnnotatedTypeTree, JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl
grammarRuleKey
Constructor | 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 | Description |
---|---|---|
void |
accept(TreeVisitor visitor) |
|
void |
add(int index,
T element) |
|
boolean |
add(T e) |
|
boolean |
addAll(int index,
Collection<? extends T> c) |
|
boolean |
addAll(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) |
parallelStream, removeIf, stream
firstToken, getChildren, getGrammarRuleKey, getLine, is, isLeaf, lastToken, parent, setParent
equals, hashCode, replaceAll, sort, spliterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
firstToken, is, lastToken, parent
public 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()
JavaTree
null
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–2018 SonarSource. All rights reserved.