Package net.bytebuddy.matcher
Enum Class ModifierMatcher.Mode
- All Implemented Interfaces:
Serializable
,Comparable<ModifierMatcher.Mode>
,Constable
- Enclosing class:
ModifierMatcher<T extends ModifierReviewable>
Determines the type of modifier to be matched by a
ModifierMatcher
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMatches an element that is consideredabstract
.Matches a type that is considered an annotation.Matches an element that is considered a bridge method.Matches a type or field for describing an enumeration.Matches an element that is consideredfinal
.Matches a type that is considered an interface.Matches a mandated parameter.Matches an element that is considerednative
.Matches an element that is consideredprivate
.Matches an element that is consideredprotected
.Matches an element that is consideredpublic
.Matches an element that is consideredstatic
.Matches an element that is consideredstrict
.Matches an element that is consideredsynchronized
.Matches an element that is consideredsynthetic
.Matches a transient field.Matches an element that is considered to be varargs.Matches a volatile field. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The textual representation of this instance's matching mode.private final ModifierMatcher
<?> The canonical matcher instance.private final int
The mask of the modifier to match. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the textual description of this mode.protected ModifierMatcher
<?> Returns a reusable matcher for this modifier sort.protected int
Returns the modifiers to match by this mode.static ModifierMatcher.Mode
Returns the enum constant of this class with the specified name.static ModifierMatcher.Mode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PUBLIC
Matches an element that is consideredpublic
. -
PROTECTED
Matches an element that is consideredprotected
. -
PRIVATE
Matches an element that is consideredprivate
. -
FINAL
Matches an element that is consideredfinal
. -
STATIC
Matches an element that is consideredstatic
. -
SYNCHRONIZED
Matches an element that is consideredsynchronized
. -
NATIVE
Matches an element that is considerednative
. -
STRICT
Matches an element that is consideredstrict
. -
VAR_ARGS
Matches an element that is considered to be varargs. -
SYNTHETIC
Matches an element that is consideredsynthetic
. -
BRIDGE
Matches an element that is considered a bridge method. -
ABSTRACT
Matches an element that is consideredabstract
. -
INTERFACE
Matches a type that is considered an interface. -
ANNOTATION
Matches a type that is considered an annotation. -
VOLATILE
Matches a volatile field. -
TRANSIENT
Matches a transient field. -
MANDATED
Matches a mandated parameter. -
ENUMERATION
Matches a type or field for describing an enumeration.
-
-
Field Details
-
modifiers
private final int modifiersThe mask of the modifier to match. -
description
The textual representation of this instance's matching mode. -
matcher
The canonical matcher instance.
-
-
Constructor Details
-
Mode
Creates a new modifier matcher mode.- Parameters:
modifiers
- The mask of the modifier to match.description
- The textual representation of this instance's matching mode.
-
-
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
-
getDescription
Returns the textual description of this mode.- Returns:
- The textual description of this mode.
-
getModifiers
protected int getModifiers()Returns the modifiers to match by this mode.- Returns:
- The modifiers to match by this mode.
-
getMatcher
Returns a reusable matcher for this modifier sort.- Returns:
- A reusable matcher for this modifier sort.
-