Java org.eclipse.jdt.core.dom Modifier fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core.dom Modifier fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core.dom Modifier.

The text is from its open source code.

Field

intABSTRACT
"abstract" modifier constant (bit mask).
intFINAL
"final" modifier constant (bit mask).
SimplePropertyDescriptorKEYWORD_PROPERTY
The "keyword" structural property of this node type (type: Modifier.ModifierKeyword ).
intNATIVE
"native" modifier constant (bit mask).
intNONE
Modifier constant (bit mask, value 0) indicating no modifiers.
intPRIVATE
"private" modifier constant (bit mask).
intPROTECTED
"protected" modifier constant (bit mask).
intPUBLIC
"public" modifier constant (bit mask).
intSTATIC
"static" modifier constant (bit mask).
intSTRICTFP
"strictfp" modifier constant (bit mask).
intSYNCHRONIZED
"synchronized" modifier constant (bit mask).
intTRANSIENT
"transient" modifier constant (bit mask).
intVOLATILE
"volatile" modifier constant (bit mask).
intDEFAULT
"default" modifier constant (bit mask) (added in JLS8 API).

Constructor

Modifier(AST ast)
Creates a new unparented modifier node owned by the given AST.

Method

ASTgetAST()
Returns this node's AST.
ModifierKeywordgetKeyword()
Returns the modifier keyword of this modifier node.
StructuralPropertyDescriptorgetLocationInParent()
Returns the location of this node within its parent, or null if this is a root node.
ASTNodegetParent()
Returns this node's parent node, or null if this is the root node.
intgetStartPosition()
Returns the character index into the original source file indicating where the source fragment corresponding to this node begins.
booleanisAbstract(int flags)
Returns whether the given flags includes the "abstract" modifier.
booleanisAbstract()
Answer true if the receiver is the abstract modifier, false otherwise.
booleanisAnnotation()
booleanisDefault(int flags)
Returns whether the given flags includes the "default" modifier.
booleanisFinal()
Answer true if the receiver is the final modifier, false otherwise.
booleanisFinal(int flags)
Returns whether the given flags includes the "final" modifier.
booleanisNative(int flags)
Returns whether the given flags includes the "native" modifier.
booleanisNative()
Answer true if the receiver is the native modifier, false otherwise.
booleanisPrivate(int flags)
Returns whether the given flags includes the "private" modifier.
booleanisPrivate()
Answer true if the receiver is the private modifier, false otherwise.
booleanisProtected(int flags)
Returns whether the given flags includes the "protected" modifier.
booleanisProtected()
Answer true if the receiver is the protected modifier, false otherwise.
booleanisPublic(int flags)
Returns whether the given flags includes the "public" modifier.
booleanisPublic()
Answer true if the receiver is the public modifier, false otherwise.
booleanisStatic(int flags)
Returns whether the given flags includes the "static" modifier.
booleanisStatic()
Answer true if the receiver is the static modifier, false otherwise.
booleanisStrictfp(int flags)
Returns whether the given flags includes the "strictfp" modifier.
booleanisStrictfp()
Answer true if the receiver is the strictfp modifier, false otherwise.
booleanisSynchronized()
Answer true if the receiver is the synchronized modifier, false otherwise.
booleanisSynchronized(int flags)
Returns whether the given flags includes the "synchronized" modifier.
booleanisTransient(int flags)
Returns whether the given flags includes the "transient" modifier.
booleanisTransient()
Answer true if the receiver is the transient modifier, false otherwise.
booleanisVolatile(int flags)
Returns whether the given flags includes the "volatile" modifier.
booleanisVolatile()
Answer true if the receiver is the volatile modifier, false otherwise.
voidsetKeyword(ModifierKeyword modifierKeyord)
Sets the modifier keyword of this modifier node.
voidsetSourceRange(int startPosition, int length)
Sets the source range of the original source file where the source fragment corresponding to this node was found.
StringtoString()
Returns a string representation of this node suitable for debugging purposes only.