类 ProgramClassOptimizationInfo
- java.lang.Object
-
- proguard.optimize.info.ClassOptimizationInfo
-
- proguard.optimize.info.ProgramClassOptimizationInfo
-
public class ProgramClassOptimizationInfo extends ClassOptimizationInfo
This class stores some optimization information that can be attached to a class that can be analyzed in detail.
-
-
字段概要
-
从类继承的字段 proguard.optimize.info.ClassOptimizationInfo
hasNoSideEffects
-
-
构造器概要
构造器 构造器 说明 ProgramClassOptimizationInfo()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancontainsConstructors()booleancontainsPackageVisibleMembers()Returns whether the class contains any package visible class members.static ProgramClassOptimizationInfogetProgramClassOptimizationInfo(proguard.classfile.Clazz clazz)Returns the ProgramClassOptimizationInfo instance from the given class.proguard.classfile.ClazzgetTargetClass()Returns the class into which this class can be merged.proguard.classfile.ClazzgetWrappedClass()Returns the class for which this class is a simple wrapper without any additional functionality, or null otherwise.booleanhasSideEffects()Returns whether loading the class has any side effects.booleaninvokesPackageVisibleMembers()Returns whether any code in the class accesses any package visible class members.booleanisCaught()Returns whether the class is a Throwable that is caught in an exception handler in the known code.booleanisDotClassed()Returns whether the class is loaded with an 'ldc' instruction (a .class construct in Java) in the known code.booleanisEscaping()Returns whether instances of the class are ever escaping to the heap.booleanisInstanceofed()Returns whether the class is part of an 'instanceof' instruction in the known code.booleanisInstantiated()Returns whether the class is instantiated in the known code.booleanisKept()Returns whether the class is kept.booleanisSimpleEnum()Returns whether the class is an enum type that can be simplified to a primitive integer.booleanmayBeMerged()Returns whether the class may be merged with other classes.voidmerge(ClassOptimizationInfo other)Merges in the given information of a class that is merged.voidsetCaught()Specifies that the class is a Throwable that is caught in an exception handler in the known code.voidsetContainsConstructors()voidsetContainsPackageVisibleMembers()Specifies that the class contains package visible class members.voidsetDotClassed()Specifies that the class is loaded with an 'ldc' instruction (a .class construct in Java) in the known code.voidsetEscaping()Specifies that instances of the class are escaping to the heap.voidsetInstanceofed()Specifies that the class is part of an 'instanceof' instruction in the known code.voidsetInstantiated()Specifies that the class is instantiated in the known code.voidsetInvokesPackageVisibleMembers()Specifies that code in the class accesses package visible class members.voidsetMayNotBeMerged()Specifies that the class may be not merged with other classes.static voidsetProgramClassOptimizationInfo(proguard.classfile.Clazz clazz)Creates and sets a ProgramClassOptimizationInfo instance on the given class.voidsetSideEffects()Specifies that loading the class has side effects.voidsetSimpleEnum(boolean simple)Specifies whether the class is an enum type that can be simplified to a primitive integer.voidsetTargetClass(proguard.classfile.Clazz targetClass)Specifies the class into which this class can be merged.voidsetWrappedClass(proguard.classfile.Clazz wrappedClass)Specifies the class for which this class is a simple wrapper without any additional functionality.-
从类继承的方法 proguard.optimize.info.ClassOptimizationInfo
getClassOptimizationInfo, hasNoSideEffects, setClassOptimizationInfo, setNoSideEffects
-
-
-
-
方法详细资料
-
isKept
public boolean isKept()
从类复制的说明:ClassOptimizationInfoReturns whether the class is kept.- 覆盖:
isKept在类中ClassOptimizationInfo
-
setContainsConstructors
public void setContainsConstructors()
-
containsConstructors
public boolean containsConstructors()
-
setInstantiated
public void setInstantiated()
Specifies that the class is instantiated in the known code.
-
isInstantiated
public boolean isInstantiated()
从类复制的说明:ClassOptimizationInfoReturns whether the class is instantiated in the known code.- 覆盖:
isInstantiated在类中ClassOptimizationInfo
-
setInstanceofed
public void setInstanceofed()
Specifies that the class is part of an 'instanceof' instruction in the known code.
-
isInstanceofed
public boolean isInstanceofed()
从类复制的说明:ClassOptimizationInfoReturns whether the class is part of an 'instanceof' instruction in the known code.- 覆盖:
isInstanceofed在类中ClassOptimizationInfo
-
setDotClassed
public void setDotClassed()
Specifies that the class is loaded with an 'ldc' instruction (a .class construct in Java) in the known code.
-
isDotClassed
public boolean isDotClassed()
从类复制的说明:ClassOptimizationInfoReturns whether the class is loaded with an 'ldc' instruction (a .class construct in Java) in the known code.- 覆盖:
isDotClassed在类中ClassOptimizationInfo
-
setCaught
public void setCaught()
Specifies that the class is a Throwable that is caught in an exception handler in the known code.
-
isCaught
public boolean isCaught()
从类复制的说明:ClassOptimizationInfoReturns whether the class is a Throwable that is caught in an exception handler in the known code.- 覆盖:
isCaught在类中ClassOptimizationInfo
-
setSimpleEnum
public void setSimpleEnum(boolean simple)
Specifies whether the class is an enum type that can be simplified to a primitive integer.
-
isSimpleEnum
public boolean isSimpleEnum()
从类复制的说明:ClassOptimizationInfoReturns whether the class is an enum type that can be simplified to a primitive integer.- 覆盖:
isSimpleEnum在类中ClassOptimizationInfo
-
setEscaping
public void setEscaping()
Specifies that instances of the class are escaping to the heap. Otherwise, any instances are just created locally and passed as parameters.
-
isEscaping
public boolean isEscaping()
从类复制的说明:ClassOptimizationInfoReturns whether instances of the class are ever escaping to the heap. Otherwise, any instances are just created locally and passed as parameters.- 覆盖:
isEscaping在类中ClassOptimizationInfo
-
setSideEffects
public void setSideEffects()
Specifies that loading the class has side effects.
-
hasSideEffects
public boolean hasSideEffects()
从类复制的说明:ClassOptimizationInfoReturns whether loading the class has any side effects.- 覆盖:
hasSideEffects在类中ClassOptimizationInfo
-
setContainsPackageVisibleMembers
public void setContainsPackageVisibleMembers()
Specifies that the class contains package visible class members.
-
containsPackageVisibleMembers
public boolean containsPackageVisibleMembers()
从类复制的说明:ClassOptimizationInfoReturns whether the class contains any package visible class members.
-
setInvokesPackageVisibleMembers
public void setInvokesPackageVisibleMembers()
Specifies that code in the class accesses package visible class members.
-
invokesPackageVisibleMembers
public boolean invokesPackageVisibleMembers()
从类复制的说明:ClassOptimizationInfoReturns whether any code in the class accesses any package visible class members.
-
setMayNotBeMerged
public void setMayNotBeMerged()
Specifies that the class may be not merged with other classes.
-
mayBeMerged
public boolean mayBeMerged()
从类复制的说明:ClassOptimizationInfoReturns whether the class may be merged with other classes.- 覆盖:
mayBeMerged在类中ClassOptimizationInfo
-
setWrappedClass
public void setWrappedClass(proguard.classfile.Clazz wrappedClass)
Specifies the class for which this class is a simple wrapper without any additional functionality.
-
getWrappedClass
public proguard.classfile.Clazz getWrappedClass()
从类复制的说明:ClassOptimizationInfoReturns the class for which this class is a simple wrapper without any additional functionality, or null otherwise.- 覆盖:
getWrappedClass在类中ClassOptimizationInfo
-
setTargetClass
public void setTargetClass(proguard.classfile.Clazz targetClass)
Specifies the class into which this class can be merged.
-
getTargetClass
public proguard.classfile.Clazz getTargetClass()
从类复制的说明:ClassOptimizationInfoReturns the class into which this class can be merged.- 覆盖:
getTargetClass在类中ClassOptimizationInfo
-
merge
public void merge(ClassOptimizationInfo other)
Merges in the given information of a class that is merged.
-
setProgramClassOptimizationInfo
public static void setProgramClassOptimizationInfo(proguard.classfile.Clazz clazz)
Creates and sets a ProgramClassOptimizationInfo instance on the given class.
-
getProgramClassOptimizationInfo
public static ProgramClassOptimizationInfo getProgramClassOptimizationInfo(proguard.classfile.Clazz clazz)
Returns the ProgramClassOptimizationInfo instance from the given class.
-
-