Package net.bytebuddy.matcher
Enum Class LatentMatcher.ForSelfDeclaredMethod
java.lang.Object
java.lang.Enum<LatentMatcher.ForSelfDeclaredMethod>
net.bytebuddy.matcher.LatentMatcher.ForSelfDeclaredMethod
- All Implemented Interfaces:
Serializable
,Comparable<LatentMatcher.ForSelfDeclaredMethod>
,Constable
,LatentMatcher<MethodDescription>
- Enclosing interface:
- LatentMatcher<T>
public static enum LatentMatcher.ForSelfDeclaredMethod
extends Enum<LatentMatcher.ForSelfDeclaredMethod>
implements LatentMatcher<MethodDescription>
A latent matching methods that are declared by the resolved type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.LatentMatcher
LatentMatcher.Conjunction<S>, LatentMatcher.Disjunction<S>, LatentMatcher.ForFieldToken, LatentMatcher.ForMethodToken, LatentMatcher.ForRecordComponentToken, LatentMatcher.ForSelfDeclaredMethod, LatentMatcher.Resolved<S>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMatches any method declared by the resolved type.Matches any method not declared by the resolved type. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ForSelfDeclaredMethod
(boolean inverted) Creates a new latent matcher for a self-declared method. -
Method Summary
Modifier and TypeMethodDescriptionElementMatcher<? super MethodDescription>
resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.Returns the enum constant of this class with the specified name.static LatentMatcher.ForSelfDeclaredMethod[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DECLARED
Matches any method declared by the resolved type. -
NOT_DECLARED
Matches any method not declared by the resolved type.
-
-
Field Details
-
inverted
private final boolean invertedtrue
if the matcher is inverted.
-
-
Constructor Details
-
ForSelfDeclaredMethod
private ForSelfDeclaredMethod(boolean inverted) Creates a new latent matcher for a self-declared method.- Parameters:
inverted
-true
if the matcher is inverted.
-
-
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
-
resolve
Resolves the element matcher this instance represents for the supplied type description.- Specified by:
resolve
in interfaceLatentMatcher<MethodDescription>
- Parameters:
typeDescription
- The type description for which the represented matcher should be resolved.- Returns:
- An
ElementMatcher
that represents this matcher's resolved form.
-