Package org.eclipse.jdt.core.dom
Class ModuleModifier.ModuleModifierKeyword
- java.lang.Object
-
- org.eclipse.jdt.core.dom.ModuleModifier.ModuleModifierKeyword
-
- Enclosing class:
- ModuleModifier
public static class ModuleModifier.ModuleModifierKeyword extends Object
Module Modifier keywords (typesafe enumeration).
-
-
Field Summary
Fields Modifier and Type Field Description static ModuleModifier.ModuleModifierKeywordSTATIC_KEYWORD"static" modifier with flag valueModuleModifier.STATIC_PHASE.static ModuleModifier.ModuleModifierKeywordTRANSITIVE_KEYWORD"transitive" modifier with flag valueModuleModifier.TRANSITIVE.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModuleModifier.ModuleModifierKeywordfromFlagValue(int flagValue)Returns the module modifier corresponding to the given single-bit flag value, ornullif none or if more than one bit is set.inttoFlagValue()Returns the module modifier flag value corresponding to this module modifier keyword.static ModuleModifier.ModuleModifierKeywordtoKeyword(String keyword)Returns the module modifier corresponding to the given string, ornullif none.StringtoString()Returns the keyword for the module modifier.
-
-
-
Field Detail
-
STATIC_KEYWORD
public static final ModuleModifier.ModuleModifierKeyword STATIC_KEYWORD
"static" modifier with flag valueModuleModifier.STATIC_PHASE.
-
TRANSITIVE_KEYWORD
public static final ModuleModifier.ModuleModifierKeyword TRANSITIVE_KEYWORD
"transitive" modifier with flag valueModuleModifier.TRANSITIVE.
-
-
Method Detail
-
fromFlagValue
public static ModuleModifier.ModuleModifierKeyword fromFlagValue(int flagValue)
Returns the module modifier corresponding to the given single-bit flag value, ornullif none or if more than one bit is set.fromFlagValueis the converse oftoFlagValue: that is,ModuleModifierKind.fromFlagValue(k.toFlagValue()) == kfor all module modifier keywordsk.- Parameters:
flagValue- the single-bit flag value for the module modifier- Returns:
- the module modifier keyword, or
nullif none - See Also:
toFlagValue()
-
toKeyword
public static ModuleModifier.ModuleModifierKeyword toKeyword(String keyword)
Returns the module modifier corresponding to the given string, ornullif none.toKeywordis the converse oftoString: that is,ModuleModifierKind.toKeyword(k.toString()) == kfor all module modifier keywordsk.- Parameters:
keyword- the lowercase string name for the module modifier- Returns:
- the module modifier keyword, or
nullif none - See Also:
toString()
-
toFlagValue
public int toFlagValue()
Returns the module modifier flag value corresponding to this module modifier keyword. These flag values are as described in the Java Virtual Machine Specification.- Returns:
- one of the
ModuleModifierconstants - See Also:
fromFlagValue(int)
-
toString
public String toString()
Returns the keyword for the module modifier.- Overrides:
toStringin classObject- Returns:
- the keyword for the module modifier
- See Also:
toKeyword(String)
-
-