public 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.TreeTraversal
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, LINE_SEPARATOR_KEY, NODE_BY_BEGIN_POSITION, PHANTOM_KEY, prettyPrinterNoCommentsConfiguration, PRINTER_KEY, 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, createDefaultPrinter, createDefaultPrinter, customInitialization, equals, findAll, findAll, findAll, findByRange, findCompilationUnit, findData, findFirst, findFirst, findFirst, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getDataKeys, getDefaultPrinterConfiguration, getLineEndingStyle, getLineEndingStyleOrDefault, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getPrinter, getPrinter, getRange, getSymbolResolver, getTokenRange, hashCode, hasScope, isAncestorOf, isPhantom, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, remove, removeComment, removeData, removeForced, removeOrphanComment, replace, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, stream, stream, toString, toString, tryAddImportToParentCompilationUnit, unregister, walk, walk, walk
finalize, getClass, notify, notifyAll, wait, wait, wait
findAncestor, findAncestor, findAncestor, hasParentNode, isDescendantOf
containsWithin, containsWithinRange, getBegin, getEnd, hasRange
public 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 static Modifier sealedModifier()
public static Modifier nonSealedModifier()
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Visitable
R
- 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)
Visitable
A
- 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 Node
Copyright © 2007–2024. All rights reserved.