Package proguard.classfile
Class FieldSignature
- java.lang.Object
-
- proguard.classfile.Signature
-
- proguard.classfile.FieldSignature
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringdescriptorjava.lang.StringmemberName
-
Constructor Summary
Constructors Constructor Description FieldSignature(java.lang.String clazzName, java.lang.String memberName, java.lang.String descriptor)FieldSignature(Clazz clazz, Field field)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringcalculateFqn()protected java.lang.StringcalculatePrettyFqn()static voidclearCache()Remove all currently cachedFieldSignatureobjects from the cache, allowing them to be removed by the garbage collector.static FieldSignaturecomputeIfAbsent(Clazz clazz, Field field)Get the singletonFieldSignatureobject for this specificField.booleanequals(java.lang.Object o)booleanisIncomplete()Check if this signature is missing information.-
Methods inherited from class proguard.classfile.Signature
compareTo, computeIfAbsent, getClassName, getExternalPackageName, getFqn, getPackageName, getPrettyFqn, getReferencedClass, hashCode, of, setCacheEnabled, toString
-
-
-
-
Method Detail
-
isIncomplete
public boolean isIncomplete()
Description copied from class:SignatureCheck if this signature is missing information.- Specified by:
isIncompletein classSignature
-
calculateFqn
protected java.lang.String calculateFqn()
- Specified by:
calculateFqnin classSignature
-
calculatePrettyFqn
protected java.lang.String calculatePrettyFqn()
- Specified by:
calculatePrettyFqnin classSignature
-
computeIfAbsent
public static FieldSignature computeIfAbsent(Clazz clazz, Field field)
Get the singletonFieldSignatureobject for this specificField. If it is not yet available in the cache, it will be newly instantiated.- Parameters:
clazz- The class containing the target fieldfield- The field whose signature is to be generated- Returns:
- The cached or newly generated
FieldSignatureobject
-
clearCache
public static void clearCache()
Remove all currently cachedFieldSignatureobjects from the cache, allowing them to be removed by the garbage collector.
-
-