Package proguard.classfile
Class FieldSignature
java.lang.Object
proguard.classfile.Signature
proguard.classfile.FieldSignature
- All Implemented Interfaces:
Comparable<Signature>
Represents a field signature consisting of class and member name.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFieldSignature(String clazzName, String memberName, String descriptor) FieldSignature(Clazz clazz, Field field) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected Stringstatic voidRemove 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.booleanbooleanCheck 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
-
Field Details
-
memberName
-
descriptor
-
-
Constructor Details
-
FieldSignature
-
FieldSignature
-
-
Method Details
-
isIncomplete
public boolean isIncomplete()Description copied from class:SignatureCheck if this signature is missing information.- Specified by:
isIncompletein classSignature
-
calculateFqn
- Specified by:
calculateFqnin classSignature
-
calculatePrettyFqn
- Specified by:
calculatePrettyFqnin classSignature
-
computeIfAbsent
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. -
equals
-