public class ClassOptimizationInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasNoSideEffects |
| Constructor and Description |
|---|
ClassOptimizationInfo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsConstructors() |
boolean |
containsPackageVisibleMembers()
Returns whether the class contains any package visible class members.
|
static ClassOptimizationInfo |
getClassOptimizationInfo(proguard.classfile.Clazz clazz)
Returns the ClassOptimizationInfo instance from the given class.
|
proguard.classfile.Clazz |
getTargetClass()
Returns the class into which this class can be merged.
|
proguard.classfile.Clazz |
getWrappedClass()
Returns the class for which this class is a simple wrapper without any
additional functionality, or null otherwise.
|
boolean |
hasNoSideEffects()
Returns whether loading the class has side effects.
|
boolean |
hasSideEffects()
Returns whether loading the class has any side effects.
|
boolean |
invokesPackageVisibleMembers()
Returns whether any code in the class accesses any package visible
class members.
|
boolean |
isCaught()
Returns whether the class is a Throwable that is caught in an exception
handler in the known code.
|
boolean |
isDotClassed()
Returns whether the class is loaded with an 'ldc' instruction (a .class
construct in Java) in the known code.
|
boolean |
isEscaping()
Returns whether instances of the class are ever escaping to the heap.
|
boolean |
isInstanceofed()
Returns whether the class is part of an 'instanceof' instruction in the
known code.
|
boolean |
isInstantiated()
Returns whether the class is instantiated in the known code.
|
boolean |
isKept()
Returns whether the class is kept.
|
boolean |
isSimpleEnum()
Returns whether the class is an enum type that can be simplified to a
primitive integer.
|
boolean |
mayBeMerged()
Returns whether the class may be merged with other classes.
|
static void |
setClassOptimizationInfo(proguard.classfile.Clazz clazz)
Creates and sets a ClassOptimizationInfo instance on the given class.
|
void |
setNoSideEffects()
Specifies that loading the class has no side effects.
|
public void setNoSideEffects()
public boolean hasNoSideEffects()
public boolean isKept()
public boolean containsConstructors()
public boolean isInstantiated()
public boolean isInstanceofed()
public boolean isDotClassed()
public boolean isCaught()
public boolean isSimpleEnum()
public boolean isEscaping()
public boolean hasSideEffects()
public boolean containsPackageVisibleMembers()
public boolean invokesPackageVisibleMembers()
public boolean mayBeMerged()
public proguard.classfile.Clazz getWrappedClass()
public proguard.classfile.Clazz getTargetClass()
public static void setClassOptimizationInfo(proguard.classfile.Clazz clazz)
public static ClassOptimizationInfo getClassOptimizationInfo(proguard.classfile.Clazz clazz)