public class ModifiersTreeImpl extends ListTreeImpl<ModifierTree> implements ModifiersTree
JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl| Modifier and Type | Field and Description |
|---|---|
static ModifiersTreeImpl |
EMPTY |
| Constructor and Description |
|---|
ModifiersTreeImpl(List<ModifierTree> javaTrees) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TreeVisitor visitor) |
List<AnnotationTree> |
annotations() |
Iterator<Tree> |
childrenIterator()
Creates iterator for children of this node.
|
static ModifiersTreeImpl |
emptyModifiers() |
Tree.Kind |
getKind() |
boolean |
isLeaf() |
List<Modifier> |
modifiers() |
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArrayaddChild, getAstNode, getLine, is, isLegacy, prependChildren, prependChildrenfindChildren, findDirectChildren, findFirstChild, findFirstDirectChild, findFirstParent, getChild, getChildren, getChildren, getDescendants, getFirstAncestor, getFirstAncestor, getFirstChild, getFirstChild, getFirstDescendant, getFromIndex, getLastChild, getLastChild, getLastToken, getName, getNextAstNode, getNextSibling, getNumberOfChildren, getParent, getPreviousAstNode, getPreviousSibling, getToIndex, getToken, getTokenLine, getTokenOriginalValue, getTokens, getTokenValue, getType, hasAncestor, hasAncestor, hasChildren, hasChildren, hasDescendant, hasDirectChildren, hasParent, hasParents, hasToBeSkippedFromAst, hasToken, is, isCopyBookOrGeneratedNode, isNot, nextAstNode, nextSibling, previousAstNode, previousSibling, select, setFromIndex, setToIndex, toStringpublic static final ModifiersTreeImpl EMPTY
public ModifiersTreeImpl(List<ModifierTree> javaTrees)
public static final ModifiersTreeImpl emptyModifiers()
public Tree.Kind getKind()
getKind in class ListTreeImpl<ModifierTree>public List<Modifier> modifiers()
modifiers in interface ModifiersTreepublic List<AnnotationTree> annotations()
annotations in interface ModifiersTreepublic void accept(TreeVisitor visitor)
accept in interface Treeaccept in class ListTreeImpl<ModifierTree>public boolean isLeaf()
isLeaf in class ListTreeImpl<ModifierTree>public Iterator<Tree> childrenIterator()
JavaTreenull elements.childrenIterator in class ListTreeImpl<ModifierTree>Copyright © 2012–2015 SonarSource. All rights reserved.