Package sootup.core.model
Enum ClassModifier
- All Implemented Interfaces:
Serializable
,Comparable<ClassModifier>
,java.lang.constant.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
-
Method Summary
Modifier and TypeMethodDescriptionint
static boolean
static boolean
static boolean
isEnum
(Set<ClassModifier> m) static boolean
isFinal
(Set<ClassModifier> m) static boolean
static boolean
static boolean
static boolean
isPublic
(Set<ClassModifier> m) static boolean
isStatic
(Set<ClassModifier> m) static boolean
isSuper
(Set<ClassModifier> m) static boolean
static String
static String
toString
(Set<ClassModifier> m) Converts the given modifiers to their string representation, in canonical form.static ClassModifier
Returns the enum constant of this type with the specified name.static ClassModifier[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type 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.
-