类 MethodDescriptor
- java.lang.Object
-
- proguard.classfile.MethodDescriptor
-
public class MethodDescriptor extends java.lang.ObjectRepresents the descriptor that is part of aMethodSignature. 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.
-
-
字段概要
字段 修饰符和类型 字段 说明 java.util.List<java.lang.String>argumentTypes已过时。java.lang.StringreturnType已过时。
-
构造器概要
构造器 构造器 说明 MethodDescriptor(java.lang.String descriptor)MethodDescriptor(java.lang.String returnType, java.util.List<java.lang.String> argumentTypes)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(java.lang.Object o)java.util.List<java.lang.String>getArgumentTypes()java.lang.StringgetPrettyArgumentTypes()Get the human readable representation of the argument types.java.lang.StringgetPrettyReturnType()Get the human readable representation of the return type.java.lang.StringgetReturnType()inthashCode()booleanisIncomplete()Check if this descriptor is missing information.static booleanmatchesIgnoreNull(MethodDescriptor descriptor, MethodDescriptor wildcard)Analogous to {@link MethodSignature.matchesIgnoreNull(MethodSignature, MethodSignature)}.static booleanmatchesIgnoreNullAndDollar(MethodDescriptor descriptor, MethodDescriptor wildcard)Analogous to {@link MethodSignature.matchesIgnoreNullAndDollar(MethodSignature, MethodSignature)}.java.lang.StringtoString()
-
-
-
方法详细资料
-
isIncomplete
public boolean isIncomplete()
Check if this descriptor is missing information.
-
getReturnType
public java.lang.String getReturnType()
-
getArgumentTypes
public java.util.List<java.lang.String> getArgumentTypes()
-
matchesIgnoreNull
public static boolean matchesIgnoreNull(MethodDescriptor descriptor, MethodDescriptor wildcard)
Analogous to {@link MethodSignature.matchesIgnoreNull(MethodSignature, MethodSignature)}.- 参数:
descriptor- TheMethodDescriptorto be comparedwildcard- TheMethodDescriptorpattern to be matched against- 返回:
- true if the two objects match
-
matchesIgnoreNullAndDollar
public static boolean matchesIgnoreNullAndDollar(MethodDescriptor descriptor, MethodDescriptor wildcard)
Analogous to {@link MethodSignature.matchesIgnoreNullAndDollar(MethodSignature, MethodSignature)}.- 参数:
descriptor- TheMethodDescriptorto be comparedwildcard- TheMethodDescriptorpattern to be matched against- 返回:
- true if the two objects match
-
getPrettyReturnType
public java.lang.String 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
public java.lang.String 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
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- 覆盖:
equals在类中java.lang.Object
-
hashCode
public int hashCode()
- 覆盖:
hashCode在类中java.lang.Object
-
-