类 Signature
java.lang.Object
proguard.classfile.Signature
- 所有已实现的接口:
Comparable<Signature>
- 直接已知子类:
ClassSignature,FieldSignature,MethodSignature
A signature currently can be a Method- or a FieldSignature. This class can be used to create the
correct one from a ProguardCORE member object (which can also be a method or a field).
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected abstract Stringprotected abstract Stringstatic voidClear the signature caches of allSignaturesubclasses.intstatic SignaturecomputeIfAbsent(Clazz clazz, Member member) This factory uses the caching features provided byMethodSignature.computeIfAbsent(Clazz, Method),FieldSignature.computeIfAbsent(Clazz, Field)andClassSignature.computeIfAbsent(Clazz).booleangetFqn()已过时。@Nullable ClazzReturns theClazzreference corresponding to the class returned bygetClassName()ornullif no reference is available (e.g. class is missing from the class pool).inthashCode()abstract booleanCheck if this signature is missing information.static SignatureConvenience factory that takes anyMemberand generates the appropriate signature, i.e.static voidsetCacheEnabled(boolean cacheEnabled) Enable or disable automatic caching inof(Clazz, Member).toString()
-
字段详细资料
-
fqn
-
prettyFqn
-
className
-
hashCode
protected final int hashCode -
referencedClass
-
-
构造器详细资料
-
Signature
-
-
方法详细资料
-
isIncomplete
public abstract boolean isIncomplete()Check if this signature is missing information. -
of
Convenience factory that takes anyMemberand generates the appropriate signature, i.e.MethodSignatures forMethods andFieldSignatures forFields. If the member is null, aClassSignatureis generated.Note that if
cacheEnabledis set to true, the generation process is delegated tocomputeIfAbsent(Clazz, Member)to make use of caching features.- 参数:
clazz- The class containing the membermember- The target member- 返回:
- The corresponding
Signatureobject
-
computeIfAbsent
This factory uses the caching features provided byMethodSignature.computeIfAbsent(Clazz, Method),FieldSignature.computeIfAbsent(Clazz, Field)andClassSignature.computeIfAbsent(Clazz). Only one signature is created for each distinctMethod,FieldorClazz. If the same signature is requested several times, the previously created object will be returned.- 参数:
clazz- The class containing the membermember- The target member- 返回:
- The corresponding
Signatureobject
-
clearCache
public static void clearCache()Clear the signature caches of allSignaturesubclasses. -
setCacheEnabled
public static void setCacheEnabled(boolean cacheEnabled) Enable or disable automatic caching inof(Clazz, Member). Existing caches are purged once caching has been disabled. -
getFqn
-
getPrettyFqn
-
getPackageName
已过时。 -
getExternalPackageName
- 返回:
- the external package name (e.g., `java.lang` for `java.lang.Object`)
-
getClassName
-
calculateFqn
-
calculatePrettyFqn
-
getReferencedClass
Returns theClazzreference corresponding to the class returned bygetClassName()ornullif no reference is available (e.g. class is missing from the class pool). -
equals
-
hashCode
public int hashCode() -
compareTo
- 指定者:
compareTo在接口中Comparable<Signature>
-
toString
-