Class ModifiersTreeImpl
java.lang.Object
org.sonar.java.model.JavaTree
org.sonar.java.ast.parser.ListTreeImpl<ModifierTree>
org.sonar.java.model.declaration.ModifiersTreeImpl
- All Implemented Interfaces:
Iterable<ModifierTree>, Collection<ModifierTree>, List<ModifierTree>, ListTree<ModifierTree>, ModifiersTree, Tree
-
Nested Class Summary
Nested classes/interfaces inherited from class JavaTree
JavaTree.AnnotatedTypeTree, JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImplModifier and TypeClassDescriptionstatic interfaceThis interface is dedicated to mark TypeTrees which will requires completion of their annotations during parsing.static classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TreeVisitor visitor) static ModifiersTreeImplkind()Methods inherited from class ListTreeImpl
add, add, addAll, addAll, children, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, separators, set, size, subList, toArray, toArrayModifier and TypeMethodDescriptionvoidadd(int index, ModifierTree element) booleanadd(ModifierTree e) booleanaddAll(int index, Collection<? extends ModifierTree> c) booleanaddAll(Collection<? extends ModifierTree> c) children()Creates iterable for children of this node.voidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) set(int index, ModifierTree element) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<U> U[]toArray(U[] a) Methods inherited from class JavaTree
allTokens, firstToken, getChildren, getLine, is, isLeaf, lastToken, parent, setParentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
ModifiersTreeImpl
-
-
Method Details
-
emptyModifiers
-
kind
- Specified by:
kindin interfaceTree- Overrides:
kindin classListTreeImpl<ModifierTree>
-
modifiers
- Specified by:
modifiersin interfaceModifiersTree
-
annotations
- Specified by:
annotationsin interfaceModifiersTree
-
accept
- Specified by:
acceptin interfaceTree- Overrides:
acceptin classListTreeImpl<ModifierTree>
-