proguard.ant
Class KeepSpecificationElement

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.types.DataType
          extended by proguard.ant.ClassSpecificationElement
              extended by proguard.ant.KeepSpecificationElement
All Implemented Interfaces:
java.lang.Cloneable

public class KeepSpecificationElement
extends ClassSpecificationElement

This DataType represents a class specification in Ant.


Field Summary
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
KeepSpecificationElement()
           
 
Method Summary
 void appendTo(java.util.List keepSpecifications, boolean markClasses, boolean markConditionally)
          Adds the contents of this class specification element to the given list.
 void setAllowobfuscation(boolean allowObfuscation)
           
 void setAllowoptimization(boolean allowOptimization)
           
 void setAllowshrinking(boolean allowShrinking)
           
 
Methods inherited from class proguard.ant.ClassSpecificationElement
addConfiguredConstructor, addConfiguredField, addConfiguredMethod, appendTo, createClassSpecification, setAccess, setAnnotation, setExtends, setExtendsannotation, setImplements, setName, setType
 
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, tooManyAttributes, toString
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeepSpecificationElement

public KeepSpecificationElement()
Method Detail

appendTo

public void appendTo(java.util.List keepSpecifications,
                     boolean markClasses,
                     boolean markConditionally)
Adds the contents of this class specification element to the given list.

Parameters:
keepSpecifications - the class specifications to be extended.
markClasses - specifies whether to mark the classes.
markConditionally - specifies whether to mark the classes and class members conditionally.

setAllowshrinking

public void setAllowshrinking(boolean allowShrinking)

setAllowoptimization

public void setAllowoptimization(boolean allowOptimization)

setAllowobfuscation

public void setAllowobfuscation(boolean allowObfuscation)