public final class Modifier extends Node
| Modifier and Type | Class and Description |
|---|---|
static class |
Modifier.Keyword
The Java modifier keywords.
|
Node.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversalABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration, SYMBOL_RESOLVER_KEY| Constructor and Description |
|---|
Modifier() |
Modifier(Modifier.Keyword keyword) |
Modifier(TokenRange tokenRange,
Modifier.Keyword keyword)
This constructor is used by the parser and is considered private.
|
addOrphanComment, containsData, customInitialization, equals, findAll, findAll, findCompilationUnit, findFirst, findFirst, findFirst, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getSymbolResolver, getTokenRange, hasComment, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeData, removeForced, removeOrphanComment, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, stream, stream, toString, toString, tryAddImportToParentCompilationUnit, unregister, walk, walk, walkfinalize, getClass, notify, notifyAll, wait, wait, waitfindAncestor, findAncestor, findParent, getAncestorOfTypecontainsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBeforepublic Modifier()
public Modifier(Modifier.Keyword keyword)
public Modifier(TokenRange tokenRange, Modifier.Keyword keyword)
public static Modifier publicModifier()
public static Modifier protectedModifier()
public static Modifier privateModifier()
public static Modifier abstractModifier()
public static Modifier staticModifier()
public static Modifier finalModifier()
public static Modifier transientModifier()
public static Modifier volatileModifier()
public static Modifier synchronizedModifier()
public static Modifier nativeModifier()
public static Modifier strictfpModifier()
public static Modifier transitiveModifier()
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
VisitableR - the type of the return value of the visitorA - the type the user argument passed to the visitorv - the visitor implementationarg - the argument passed to the visitor (of type A)public <A> void accept(VoidVisitor<A> v, A arg)
VisitableA - the type the argument passed for the visitorv - the visitor implementationarg - any value relevant for the visitor (of type A)public Modifier.Keyword getKeyword()
public Modifier setKeyword(Modifier.Keyword keyword)
public static NodeList<Modifier> createModifierList(Modifier.Keyword... modifiers)
public ModifierMetaModel getMetaModel()
getMetaModel in class NodeCopyright © 2007–2019. All rights reserved.