public class MethodDescriptor
extends java.lang.Object
MethodSignature.
A descriptor consists of parameter types and return type of a method,
e.g. "()V" for a void method with no parameters, or "(II)B" for a
method that takes two integers and returns a boolean. Read more about
this topic in
ยง4.3.3
of the JVM specification.| Modifier and Type | Field and Description |
|---|---|
java.util.List<java.lang.String> |
argumentTypes |
java.lang.String |
returnType |
| Constructor and Description |
|---|
MethodDescriptor(java.lang.String descriptor) |
MethodDescriptor(java.lang.String returnType,
java.util.List<java.lang.String> argumentTypes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getPrettyArgumentTypes()
Get the human readable representation of the argument types.
|
java.lang.String |
getPrettyReturnType()
Get the human readable representation of the return type.
|
int |
hashCode() |
boolean |
matchesIgnoreNull(MethodDescriptor other)
Analogous to
MethodSignature.matchesIgnoreNull(MethodSignature). |
boolean |
matchesIgnoreNullAndDollar(MethodDescriptor other)
|
java.lang.String |
toString() |
public final java.lang.String returnType
public final java.util.List<java.lang.String> argumentTypes
public MethodDescriptor(java.lang.String descriptor)
public MethodDescriptor(java.lang.String returnType,
java.util.List<java.lang.String> argumentTypes)
public boolean matchesIgnoreNull(MethodDescriptor other)
MethodSignature.matchesIgnoreNull(MethodSignature).other - The MethodDescriptor to compare with this onepublic boolean matchesIgnoreNullAndDollar(MethodDescriptor other)
other - The MethodDescriptor to compare with this onepublic java.lang.String getPrettyReturnType()
returnTypepublic java.lang.String getPrettyArgumentTypes()
argumentTypespublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object