-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable,org.gjt.jclasslib.structures.ClassFileFlag
public enum AccessFlag extends Enum<AccessFlag> implements ClassFileFlag
Defines access flags constants and verbose expressions as defined by the java access modifiers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAccessFlag.Companion
-
Enum Constant Summary
Enum Constants Enum Constant Description PUBLICPRIVATEPROTECTEDSTATICFINALSYNCHRONIZEDSUPERFor ClassFile structures, 0x0020 is ACC_SUPER, which has historical significance only
VOLATILETRANSIENTNATIVEINTERFACEABSTRACTSTRICTSYNTHETICANNOTATIONENUMBRIDGEVARARGSMANDATEDMODULEOPENTRANSITIVESTATIC_PHASE
-
Method Summary
Modifier and Type Method Description final BooleanisSet(Integer accessFlags)Checks if this access flag is set in the supplied access flags. StringtoString()final AccessFlagvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<AccessFlag>values()Returns an array containing the constants of this enum type, in the order they're declared. IntegergetFlag()the flag StringgetVerbose()Verbose form of the flag suitable for printing a list of access flags final StringgetSinceJava()the first Java version that supports this access flag BooleangetHistorical()if the flag is only of historical significance -
-
Method Detail
-
isSet
final Boolean isSet(Integer accessFlags)
Checks if this access flag is set in the supplied access flags.
- Parameters:
accessFlags- the access flags
-
valueOf
final AccessFlag valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<AccessFlag> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getVerbose
String getVerbose()
Verbose form of the flag suitable for printing a list of access flags
-
getSinceJava
final String getSinceJava()
the first Java version that supports this access flag
-
getHistorical
Boolean getHistorical()
if the flag is only of historical significance
-
-
-
-