public static enum LatentMatcher.ForSelfDeclaredMethod extends Enum<LatentMatcher.ForSelfDeclaredMethod> implements LatentMatcher<MethodDescription>
LatentMatcher.Conjunction<S>, LatentMatcher.Disjunction<S>, LatentMatcher.ForFieldToken, LatentMatcher.ForMethodToken, LatentMatcher.ForRecordComponentToken, LatentMatcher.ForSelfDeclaredMethod, LatentMatcher.Resolved<S>| Enum Constant and Description |
|---|
DECLARED
Matches any method declared by the resolved type.
|
NOT_DECLARED
Matches any method not declared by the resolved type.
|
| Modifier and Type | Method and Description |
|---|---|
ElementMatcher<? super MethodDescription> |
resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.
|
static LatentMatcher.ForSelfDeclaredMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LatentMatcher.ForSelfDeclaredMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LatentMatcher.ForSelfDeclaredMethod DECLARED
public static final LatentMatcher.ForSelfDeclaredMethod NOT_DECLARED
public static LatentMatcher.ForSelfDeclaredMethod[] values()
for (LatentMatcher.ForSelfDeclaredMethod c : LatentMatcher.ForSelfDeclaredMethod.values()) System.out.println(c);
public static LatentMatcher.ForSelfDeclaredMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic ElementMatcher<? super MethodDescription> resolve(TypeDescription typeDescription)
resolve in interface LatentMatcher<MethodDescription>typeDescription - The type description for which the represented matcher should be resolved.ElementMatcher that represents this matcher's resolved form.Copyright © 2014–2025. All rights reserved.