Package sootup.core.model
Enum Class ClassModifier
- All Implemented Interfaces:
Serializable
,Comparable<ClassModifier>
,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 TypeMethodDescriptionint
static boolean
isAbstract
(@NonNull Set<ClassModifier> m) static boolean
isAnnotation
(@NonNull Set<ClassModifier> m) static boolean
isEnum
(@NonNull Set<ClassModifier> m) static boolean
isFinal
(@NonNull Set<ClassModifier> m) static boolean
isInterface
(@NonNull Set<ClassModifier> m) static boolean
isPrivate
(@NonNull Set<ClassModifier> m) static boolean
isProtected
(@NonNull Set<ClassModifier> m) static boolean
isPublic
(@NonNull Set<ClassModifier> m) static boolean
isStatic
(@NonNull Set<ClassModifier> m) static boolean
isSuper
(@NonNull Set<ClassModifier> m) static boolean
isSynthetic
(@NonNull Set<ClassModifier> m) static @NonNull String
toString
(@NonNull EnumSet<ClassModifier> m) static @NonNull String
toString
(@NonNull Set<ClassModifier> m) Converts the given modifiers to their string representation, in canonical form.static ClassModifier
Returns the enum constant of this class with the specified name.static ClassModifier[]
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
-
SUPER
-
INTERFACE
-
ABSTRACT
-
SYNTHETIC
-
ANNOTATION
-
ENUM
-
MODULE
-
-
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
-
isAbstract
-
isFinal
-
isInterface
-
isPrivate
-
isProtected
-
isPublic
-
isStatic
-
isSuper
-
isAnnotation
-
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.
-