Package proguard.classfile
Class FieldSignature
- java.lang.Object
-
- proguard.classfile.Signature
-
- proguard.classfile.FieldSignature
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
descriptor
java.lang.String
memberName
-
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.String
calculateFqn()
protected java.lang.String
calculatePrettyFqn()
static void
clearCache()
Remove all currently cachedFieldSignature
objects from the cache, allowing them to be removed by the garbage collector.static FieldSignature
computeIfAbsent(Clazz clazz, Field field)
Get the singletonFieldSignature
object for this specificField
.boolean
equals(java.lang.Object o)
boolean
isIncomplete()
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:Signature
Check if this signature is missing information.- Specified by:
isIncomplete
in classSignature
-
calculateFqn
protected java.lang.String calculateFqn()
- Specified by:
calculateFqn
in classSignature
-
calculatePrettyFqn
protected java.lang.String calculatePrettyFqn()
- Specified by:
calculatePrettyFqn
in classSignature
-
computeIfAbsent
public static FieldSignature computeIfAbsent(Clazz clazz, Field field)
Get the singletonFieldSignature
object 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
FieldSignature
object
-
clearCache
public static void clearCache()
Remove all currently cachedFieldSignature
objects from the cache, allowing them to be removed by the garbage collector.
-
-