public final class ExactMethodMatcher extends java.lang.Object implements MethodMatcher
UNSPECIFIED_ACCESS, UNSPECIFIED_ANNOTATIONS| Constructor and Description |
|---|
ExactMethodMatcher(java.lang.String name,
java.util.Collection<java.lang.String> descriptions) |
ExactMethodMatcher(java.lang.String name,
java.lang.String... descriptions) |
ExactMethodMatcher(java.lang.String name,
java.lang.String description)
Matches a single method name / method description.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
org.objectweb.asm.commons.Method[] |
getExactMethods() |
int |
hashCode() |
boolean |
matches(int access,
java.lang.String name,
java.lang.String desc,
java.util.Set<java.lang.String> annotations)
Returns true if this matcher matches the given method.
|
java.lang.String |
toString() |
void |
validate()
Validates the method signature(s) described by this matcher.
|
public ExactMethodMatcher(java.lang.String name,
java.lang.String description)
name - description - public ExactMethodMatcher(java.lang.String name,
java.util.Collection<java.lang.String> descriptions)
public ExactMethodMatcher(java.lang.String name,
java.lang.String... descriptions)
public boolean matches(int access,
java.lang.String name,
java.lang.String desc,
java.util.Set<java.lang.String> annotations)
MethodMatchermatches in interface MethodMatcheraccess - The method access flags.public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface MethodMatcherequals in class java.lang.Objectpublic void validate()
throws InvalidMethodDescriptor
InvalidMethodDescriptorpublic org.objectweb.asm.commons.Method[] getExactMethods()
getExactMethods in interface MethodMatcher