类 MethodDescriptor
java.lang.Object
proguard.classfile.MethodDescriptor
Represents the descriptor that is part of a
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.-
字段概要
字段 -
构造器概要
构造器构造器说明MethodDescriptor(String descriptor) MethodDescriptor(String returnType, List<String> argumentTypes) -
方法概要
修饰符和类型方法说明booleanGet the human readable representation of the argument types.Get the human readable representation of the return type.inthashCode()booleanCheck if this descriptor is missing information.static booleanmatchesIgnoreNull(MethodDescriptor descriptor, MethodDescriptor wildcard) static booleanmatchesIgnoreNullAndDollar(MethodDescriptor descriptor, MethodDescriptor wildcard) toString()
-
字段详细资料
-
returnType
已过时。 -
argumentTypes
已过时。
-
-
构造器详细资料
-
MethodDescriptor
-
MethodDescriptor
-
-
方法详细资料
-
isIncomplete
public boolean isIncomplete()Check if this descriptor is missing information. -
getReturnType
-
getArgumentTypes
-
matchesIgnoreNull
- 参数:
descriptor- TheMethodDescriptorto be comparedwildcard- TheMethodDescriptorpattern to be matched against- 返回:
- true if the two objects match
-
matchesIgnoreNullAndDollar
public static boolean matchesIgnoreNullAndDollar(MethodDescriptor descriptor, MethodDescriptor wildcard) - 参数:
descriptor- TheMethodDescriptorto be comparedwildcard- TheMethodDescriptorpattern to be matched against- 返回:
- true if the two objects match
-
getPrettyReturnType
Get the human readable representation of the return type. E.g. "void" for "V" or "?" for an undefined return type.- 返回:
- The human readable representation of
returnType
-
getPrettyArgumentTypes
Get the human readable representation of the argument types. E.g. "String,int" for "(Ljava/lang/String;I)".- 返回:
- The human readable representation of
argumentTypes
-
toString
-
equals
-
hashCode
public int hashCode()
-