|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.core.dom.ASTNode
org.eclipse.jdt.core.dom.Modifier
Modifier node.
Modifier: public protected private static abstract final native synchronized transient volatile strictfp
The numeric values of these flags match the ones for class
files as described in the Java Virtual Machine Specification.
Note that Java model class Flags
also
provides the same constants as this class.
Nested Class Summary | |
static class |
Modifier.ModifierKeyword
Modifier keywords (typesafe enumeration). |
Field Summary | |
static int |
ABSTRACT
"abstract" modifier constant (bit mask). |
static int |
FINAL
"final" modifier constant (bit mask). |
static SimplePropertyDescriptor |
KEYWORD_PROPERTY
The "keyword" structural property of this node type. |
static int |
NATIVE
"native" modifier constant (bit mask). |
static int |
NONE
Modifier constant (bit mask, value 0) indicating no modifiers. |
static int |
PRIVATE
"private" modifier constant (bit mask). |
static int |
PROTECTED
"protected" modifier constant (bit mask). |
static int |
PUBLIC
"public" modifier constant (bit mask). |
static int |
STATIC
"static" modifier constant (bit mask). |
static int |
STRICTFP
"strictfp" modifier constant (bit mask). |
static int |
SYNCHRONIZED
"synchronized" modifier constant (bit mask). |
static int |
TRANSIENT
"transient" modifier constant (bit mask). |
static int |
VOLATILE
"volatile" modifier constant (bit mask). |
Method Summary | |
Modifier.ModifierKeyword |
getKeyword()
Returns the modifier keyword of this modifier node. |
static boolean |
isAbstract(int flags)
Returns whether the given flags includes the "abstract" modifier. |
boolean |
isAnnotation()
Returns whether this extended modifier is an annotation. |
static boolean |
isFinal(int flags)
Returns whether the given flags includes the "final" modifier. |
boolean |
isModifier()
Returns whether this extended modifier is a standard modifier. |
static boolean |
isNative(int flags)
Returns whether the given flags includes the "native" modifier. |
static boolean |
isPrivate(int flags)
Returns whether the given flags includes the "private" modifier. |
static boolean |
isProtected(int flags)
Returns whether the given flags includes the "protected" modifier. |
static boolean |
isPublic(int flags)
Returns whether the given flags includes the "public" modifier. |
static boolean |
isStatic(int flags)
Returns whether the given flags includes the "static" modifier. |
static boolean |
isStrictfp(int flags)
Returns whether the given flags includes the "strictfp" modifier. |
static boolean |
isSynchronized(int flags)
Returns whether the given flags includes the "synchronized" modifier. |
static boolean |
isTransient(int flags)
Returns whether the given flags includes the "transient" modifier. |
static boolean |
isVolatile(int flags)
Returns whether the given flags includes the "volatile" modifier. |
static List |
propertyDescriptors(int apiLevel)
Returns a list of structural property descriptors for this node type. |
void |
setKeyword(Modifier.ModifierKeyword modifierKeyord)
Sets the modifier keyword of this modifier node. |
Methods inherited from class org.eclipse.jdt.core.dom.ASTNode |
accept, copySubtree, copySubtrees, delete, equals, getAST, getFlags, getLength, getLocationInParent, getNodeType, getParent, getProperty, getRoot, getStartPosition, getStructuralProperty, nodeClassForType, properties, setFlags, setProperty, setSourceRange, setStructuralProperty, structuralPropertiesForType, subtreeBytes, subtreeMatch, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NONE
public static final int PUBLIC
public static final int PRIVATE
public static final int PROTECTED
public static final int STATIC
public static final int FINAL
public static final int SYNCHRONIZED
public static final int VOLATILE
public static final int TRANSIENT
public static final int NATIVE
public static final int ABSTRACT
public static final int STRICTFP
public static final SimplePropertyDescriptor KEYWORD_PROPERTY
Method Detail |
public static boolean isPublic(int flags)
flags
- the modifier flags
true
if the PUBLIC
bit is
set, and false
otherwisepublic static boolean isPrivate(int flags)
flags
- the modifier flags
true
if the PRIVATE
bit is
set, and false
otherwisepublic static boolean isProtected(int flags)
flags
- the modifier flags
true
if the PROTECTED
bit is
set, and false
otherwisepublic static boolean isStatic(int flags)
flags
- the modifier flags
true
if the STATIC
bit is
set, and false
otherwisepublic static boolean isFinal(int flags)
flags
- the modifier flags
true
if the FINAL
bit is
set, and false
otherwisepublic static boolean isSynchronized(int flags)
flags
- the modifier flags
true
if the SYNCHRONIZED
bit is
set, and false
otherwisepublic static boolean isVolatile(int flags)
flags
- the modifier flags
true
if the VOLATILE
bit is
set, and false
otherwisepublic static boolean isTransient(int flags)
flags
- the modifier flags
true
if the TRANSIENT
bit is
set, and false
otherwisepublic static boolean isNative(int flags)
flags
- the modifier flags
true
if the NATIVE
bit is
set, and false
otherwisepublic static boolean isAbstract(int flags)
flags
- the modifier flags
true
if the ABSTRACT
bit is
set, and false
otherwisepublic static boolean isStrictfp(int flags)
flags
- the modifier flags
true
if the STRICTFP
bit is
set, and false
otherwisepublic static List propertyDescriptors(int apiLevel)
apiLevel
- the API level; one of the
AST.JLS*
constants
StructuralPropertyDescriptor
)public boolean isModifier()
IExtendedModifier
isModifier
in interface IExtendedModifier
true
if this is a standard modifier
(instance of Modifier
), and false
otherwiseIExtendedModifier.isModifier()
public boolean isAnnotation()
IExtendedModifier
isAnnotation
in interface IExtendedModifier
true
if this is an annotation
(instance of a subclass of Annotation
), and
false
otherwiseIExtendedModifier.isAnnotation()
public Modifier.ModifierKeyword getKeyword()
public void setKeyword(Modifier.ModifierKeyword modifierKeyord)
modifierKeyord
- the modifier keyword
IllegalArgumentException
- if the argument is null
|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |