Example usage for Java org.eclipse.jdt.core.dom Modifier fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ABSTRACT "abstract" modifier constant (bit mask). |
int | FINAL "final" modifier constant (bit mask). |
SimplePropertyDescriptor | KEYWORD_PROPERTY The "keyword" structural property of this node type (type: Modifier.ModifierKeyword ). |
int | NATIVE "native" modifier constant (bit mask). |
int | NONE Modifier constant (bit mask, value 0) indicating no modifiers. |
int | PRIVATE "private" modifier constant (bit mask). |
int | PROTECTED "protected" modifier constant (bit mask). |
int | PUBLIC "public" modifier constant (bit mask). |
int | STATIC "static" modifier constant (bit mask). |
int | STRICTFP "strictfp" modifier constant (bit mask). |
int | SYNCHRONIZED "synchronized" modifier constant (bit mask). |
int | TRANSIENT "transient" modifier constant (bit mask). |
int | VOLATILE "volatile" modifier constant (bit mask). |
int | DEFAULT "default" modifier constant (bit mask) (added in JLS8 API). |
Modifier(AST ast) Creates a new unparented modifier node owned by the given AST. |
AST | getAST() Returns this node's AST. |
ModifierKeyword | getKeyword() Returns the modifier keyword of this modifier node. |
StructuralPropertyDescriptor | getLocationInParent() Returns the location of this node within its parent, or null if this is a root node. |
ASTNode | getParent() Returns this node's parent node, or null if this is the root node. |
int | getStartPosition() Returns the character index into the original source file indicating where the source fragment corresponding to this node begins. |
boolean | isAbstract(int flags) Returns whether the given flags includes the "abstract" modifier. |
boolean | isAbstract() Answer true if the receiver is the abstract modifier, false otherwise. |
boolean | isAnnotation() |
boolean | isDefault(int flags) Returns whether the given flags includes the "default" modifier. |
boolean | isFinal() Answer true if the receiver is the final modifier, false otherwise. |
boolean | isFinal(int flags) Returns whether the given flags includes the "final" modifier. |
boolean | isNative(int flags) Returns whether the given flags includes the "native" modifier. |
boolean | isNative() Answer true if the receiver is the native modifier, false otherwise. |
boolean | isPrivate(int flags) Returns whether the given flags includes the "private" modifier. |
boolean | isPrivate() Answer true if the receiver is the private modifier, false otherwise. |
boolean | isProtected(int flags) Returns whether the given flags includes the "protected" modifier. |
boolean | isProtected() Answer true if the receiver is the protected modifier, false otherwise. |
boolean | isPublic(int flags) Returns whether the given flags includes the "public" modifier. |
boolean | isPublic() Answer true if the receiver is the public modifier, false otherwise. |
boolean | isStatic(int flags) Returns whether the given flags includes the "static" modifier. |
boolean | isStatic() Answer true if the receiver is the static modifier, false otherwise. |
boolean | isStrictfp(int flags) Returns whether the given flags includes the "strictfp" modifier. |
boolean | isStrictfp() Answer true if the receiver is the strictfp modifier, false otherwise. |
boolean | isSynchronized() Answer true if the receiver is the synchronized modifier, false otherwise. |
boolean | isSynchronized(int flags) Returns whether the given flags includes the "synchronized" modifier. |
boolean | isTransient(int flags) Returns whether the given flags includes the "transient" modifier. |
boolean | isTransient() Answer true if the receiver is the transient modifier, false otherwise. |
boolean | isVolatile(int flags) Returns whether the given flags includes the "volatile" modifier. |
boolean | isVolatile() Answer true if the receiver is the volatile modifier, false otherwise. |
void | setKeyword(ModifierKeyword modifierKeyord) Sets the modifier keyword of this modifier node. |
void | setSourceRange(int startPosition, int length) Sets the source range of the original source file where the source fragment corresponding to this node was found. |
String | toString() Returns a string representation of this node suitable for debugging purposes only. |