Package org.sonar.java.model.declaration
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
public class ModifiersTreeImpl extends ListTreeImpl<ModifierTree> implements ModifiersTree
-
-
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
-
Fields inherited from class org.sonar.java.model.JavaTree
grammarRuleKey, root
-
-
Constructor Summary
Constructors Constructor Description ModifiersTreeImpl(List<ModifierTree> javaTrees)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(TreeVisitor visitor)
List<AnnotationTree>
annotations()
static ModifiersTreeImpl
emptyModifiers()
Tree.Kind
kind()
List<ModifierKeywordTree>
modifiers()
-
Methods inherited from class org.sonar.java.ast.parser.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, toArray
-
Methods inherited from class org.sonar.java.model.JavaTree
firstToken, getChildren, getGrammarRuleKey, getLine, is, isLeaf, lastToken, parent, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Methods inherited from interface org.sonar.plugins.java.api.tree.ListTree
separators
-
Methods inherited from interface org.sonar.plugins.java.api.tree.Tree
firstToken, is, lastToken, parent
-
-
-
-
Constructor Detail
-
ModifiersTreeImpl
public ModifiersTreeImpl(List<ModifierTree> javaTrees)
-
-
Method Detail
-
emptyModifiers
public static ModifiersTreeImpl emptyModifiers()
-
kind
public Tree.Kind kind()
- Specified by:
kind
in interfaceTree
- Overrides:
kind
in classListTreeImpl<ModifierTree>
-
modifiers
public List<ModifierKeywordTree> modifiers()
- Specified by:
modifiers
in interfaceModifiersTree
-
annotations
public List<AnnotationTree> annotations()
- Specified by:
annotations
in interfaceModifiersTree
-
accept
public void accept(TreeVisitor visitor)
- Specified by:
accept
in interfaceTree
- Overrides:
accept
in classListTreeImpl<ModifierTree>
-
-