Package org.sonar.java.ast.parser
Class ListTreeImpl<T extends Tree>
java.lang.Object
org.sonar.java.model.JavaTree
org.sonar.java.ast.parser.ListTreeImpl<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,ListTree<T>,Tree
- Direct Known Subclasses:
ArgumentListTreeImpl,FormalParametersListTreeImpl,InitializerListTreeImpl,ModifiersTreeImpl,ModuleNameListTreeImpl,ModuleNameTreeImpl,QualifiedIdentifierListTreeImpl,ResourceListTreeImpl,StatementListTreeImpl,TypeArgumentListTreeImpl,TypeParameterListTreeImpl
-
Nested Class Summary
Nested classes/interfaces inherited from class org.sonar.java.model.JavaTree
JavaTree.AnnotatedTypeTree, JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl -
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedListTreeImpl(List<T> list) protectedListTreeImpl(List<T> list, List<SyntaxToken> separators) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TreeVisitor visitor) voidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) children()Creates iterable for children of this node.voidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) intbooleanisEmpty()iterator()kind()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<U> U[]toArray(U[] a) Methods inherited from class org.sonar.java.model.JavaTree
firstToken, getChildren, getLine, is, isLeaf, lastToken, parent, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliteratorMethods inherited from interface org.sonar.plugins.java.api.tree.Tree
firstToken, is, lastToken, parent
-
Constructor Details
-
ListTreeImpl
-
ListTreeImpl
-
-
Method Details
-
separators
- Specified by:
separatorsin interfaceListTree<T extends Tree>
-
accept
-
kind
-
children
Description copied from class:JavaTreeCreates iterable for children of this node. Note that iterable may containnullelements. -
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <U> U[] toArray(U[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T extends Tree>- Specified by:
containsAllin interfaceList<T extends Tree>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T extends Tree>
-
listIterator
- Specified by:
listIteratorin interfaceList<T extends Tree>
-
listIterator
- Specified by:
listIteratorin interfaceList<T extends Tree>
-
subList
-