Package sootup.core.model
Enum Class FieldModifier
- All Implemented Interfaces:
Serializable,Comparable<FieldModifier>,Constable
An Enum that provides static methods and constants to represent and work with with Java modifiers
(ie public, final,...) Represents Java modifiers that can be packed and combined via EnumSet and
methods to query these.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintstatic booleanisEnum(@NonNull Set<FieldModifier> m) static booleanisFinal(@NonNull Set<FieldModifier> m) static booleanisPrivate(@NonNull Set<FieldModifier> m) static booleanisProtected(@NonNull Set<FieldModifier> m) static booleanisPublic(@NonNull Set<FieldModifier> m) static booleanisStatic(@NonNull Set<FieldModifier> m) static booleanisSynthetic(@NonNull Set<FieldModifier> m) static booleanisTransient(@NonNull Set<FieldModifier> m) static booleanisVolatile(@NonNull Set<FieldModifier> m) static @NonNull StringtoString(@NonNull EnumSet<FieldModifier> m) static @NonNull StringtoString(@NonNull Set<FieldModifier> m) Converts the given modifiers to their string representation, in canonical form.static FieldModifierReturns the enum constant of this class with the specified name.static FieldModifier[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PUBLIC
-
PRIVATE
-
PROTECTED
-
STATIC
-
FINAL
-
VOLATILE
-
TRANSIENT
-
SYNTHETIC
-
ENUM
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isFinal
-
isPrivate
-
isProtected
-
isPublic
-
isStatic
-
isTransient
-
isVolatile
-
isEnum
-
isSynthetic
-
toString
Converts the given modifiers to their string representation, in canonical form.- Parameters:
m- a modifier set- Returns:
- a textual representation of the modifiers.
-
toString
-
getBytecode
public int getBytecode()- Returns:
- the bytecode of this Modifier.
-