proguard
Class KeepClassSpecification

java.lang.Object
  extended by proguard.ClassSpecification
      extended by proguard.KeepClassSpecification
All Implemented Interfaces:
java.lang.Cloneable

public class KeepClassSpecification
extends ClassSpecification

This class represents a keep option with class specification.


Field Summary
 boolean allowObfuscation
           
 boolean allowOptimization
           
 boolean allowShrinking
           
 boolean markClasses
           
 boolean markConditionally
           
 
Fields inherited from class proguard.ClassSpecification
annotationType, className, comments, extendsAnnotationType, extendsClassName, fieldSpecifications, methodSpecifications, requiredSetAccessFlags, requiredUnsetAccessFlags
 
Constructor Summary
KeepClassSpecification(boolean markClasses, boolean markConditionally, boolean allowShrinking, boolean allowOptimization, boolean allowObfuscation)
          Creates a new KeepClassSpecification for all possible classes.
KeepClassSpecification(boolean markClasses, boolean markConditionally, boolean allowShrinking, boolean allowOptimization, boolean allowObfuscation, ClassSpecification classSpecification)
          Creates a new KeepClassSpecification.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object object)
           
 int hashCode()
           
 
Methods inherited from class proguard.ClassSpecification
addField, addMethod
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

markClasses

public final boolean markClasses

markConditionally

public final boolean markConditionally

allowShrinking

public final boolean allowShrinking

allowOptimization

public final boolean allowOptimization

allowObfuscation

public final boolean allowObfuscation
Constructor Detail

KeepClassSpecification

public KeepClassSpecification(boolean markClasses,
                              boolean markConditionally,
                              boolean allowShrinking,
                              boolean allowOptimization,
                              boolean allowObfuscation)
Creates a new KeepClassSpecification for all possible classes.

Parameters:
markClasses - specifies whether to mark the classes. If false, only class members are marked. If true, the classes are marked as well.
markConditionally - specifies whether to mark the classes and class members conditionally. If true, classes and class members are marked, on the condition that all specified class members are present.
allowShrinking - specifies whether shrinking is allowed.
allowOptimization - specifies whether optimization is allowed.
allowObfuscation - specifies whether obfuscation is allowed.

KeepClassSpecification

public KeepClassSpecification(boolean markClasses,
                              boolean markConditionally,
                              boolean allowShrinking,
                              boolean allowOptimization,
                              boolean allowObfuscation,
                              ClassSpecification classSpecification)
Creates a new KeepClassSpecification.

Parameters:
markClasses - specifies whether to mark the classes. If false, only class members are marked. If true, the classes are marked as well.
markConditionally - specifies whether to mark the classes and class members conditionally. If true, classes and class members are marked, on the condition that all specified class members are present.
allowShrinking - specifies whether shrinking is allowed.
allowOptimization - specifies whether optimization is allowed.
allowObfuscation - specifies whether obfuscation is allowed.
classSpecification - the specification of classes and class members.
Method Detail

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class ClassSpecification

hashCode

public int hashCode()
Overrides:
hashCode in class ClassSpecification

clone

public java.lang.Object clone()
Overrides:
clone in class ClassSpecification