|
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.Modifier.ModifierKeyword
Modifier keywords (typesafe enumeration).
Method Summary | |
static Modifier.ModifierKeyword |
fromFlagValue(int flagValue)
Returns the modifier corresponding to the given single-bit flag value, or null if none or if more than one bit is set.
|
int |
toFlagValue()
Returns the modifier flag value corresponding to this modifier keyword. |
static Modifier.ModifierKeyword |
toKeyword(String keyword)
Returns the modifier corresponding to the given string, or null if none.
|
String |
toString()
Returns the keyword for the modifier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Modifier.ModifierKeyword PUBLIC_KEYWORD
Modifier.PUBLIC
.
public static final Modifier.ModifierKeyword PROTECTED_KEYWORD
Modifier.PROTECTED
.
public static final Modifier.ModifierKeyword PRIVATE_KEYWORD
Modifier.PRIVATE
.
public static final Modifier.ModifierKeyword STATIC_KEYWORD
Modifier.STATIC
.
public static final Modifier.ModifierKeyword ABSTRACT_KEYWORD
Modifier.ABSTRACT
.
public static final Modifier.ModifierKeyword FINAL_KEYWORD
Modifier.FINAL
.
public static final Modifier.ModifierKeyword NATIVE_KEYWORD
Modifier.NATIVE
.
public static final Modifier.ModifierKeyword SYNCHRONIZED_KEYWORD
Modifier.SYNCHRONIZED
.
public static final Modifier.ModifierKeyword TRANSIENT_KEYWORD
Modifier.TRANSIENT
.
public static final Modifier.ModifierKeyword VOLATILE_KEYWORD
Modifier.VOLATILE
.
public static final Modifier.ModifierKeyword STRICTFP_KEYWORD
Modifier.STRICTFP
.
Method Detail |
public String toString()
toKeyword(String)
public static Modifier.ModifierKeyword toKeyword(String keyword)
null
if none.
toKeyword
is the converse of toString
:
that is, ModifierKind.toKeyword(k.toString()) == k
for
all modifier keywords k
.
keyword
- the lowercase string name for the modifier
null
if nonetoString()
public int toFlagValue()
Modifier
constantsfromFlagValue(int)
public static Modifier.ModifierKeyword fromFlagValue(int flagValue)
null
if none or if more than one bit is set.
fromFlagValue
is the converse of toFlagValue
:
that is, ModifierKind.fromFlagValue(k.toFlagValue()) == k
for
all modifier keywords k
.
flagValue
- the single-bit flag value for the modifier
null
if nonetoFlagValue()
|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |