Package proguard.classfile
Class ClassSignature
- java.lang.Object
-
- proguard.classfile.Signature
-
- proguard.classfile.ClassSignature
-
-
Constructor Summary
Constructors Constructor Description ClassSignature(java.lang.String className)
ClassSignature(Clazz clazz)
-
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 cachedClassSignature
objects from the cache, allowing them to be removed by the garbage collector.static ClassSignature
computeIfAbsent(Clazz clazz)
Get the singletonClassSignature
object for this specificClazz
.boolean
isIncomplete()
Check if this signature is missing information.-
Methods inherited from class proguard.classfile.Signature
compareTo, computeIfAbsent, equals, getClassName, getExternalPackageName, getFqn, getPackageName, getPrettyFqn, getReferencedClass, hashCode, of, setCacheEnabled, toString
-
-
-
-
Constructor Detail
-
ClassSignature
public ClassSignature(java.lang.String className)
-
ClassSignature
public ClassSignature(Clazz clazz)
-
-
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
-
clearCache
public static void clearCache()
Remove all currently cachedClassSignature
objects from the cache, allowing them to be removed by the garbage collector.
-
computeIfAbsent
public static ClassSignature computeIfAbsent(Clazz clazz)
Get the singletonClassSignature
object for this specificClazz
. If it is not yet available in the cache, it will be newly instantiated.- Parameters:
clazz
- The class containing the target field- Returns:
- The cached or newly generated
ClassSignature
object
-
-