|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.ClassSpecification
public class ClassSpecification
This class stores a specification of classes and possibly class members. The specification is template-based: the class names and class member names and descriptors can contain wildcards. Classes can be specified explicitly, or as extensions or implementations in the class hierarchy.
| Field Summary | |
|---|---|
java.lang.String |
annotationType
|
java.lang.String |
className
|
java.lang.String |
comments
|
java.lang.String |
extendsAnnotationType
|
java.lang.String |
extendsClassName
|
java.util.List |
fieldSpecifications
|
java.util.List |
methodSpecifications
|
int |
requiredSetAccessFlags
|
int |
requiredUnsetAccessFlags
|
| Constructor Summary | |
|---|---|
ClassSpecification()
Creates a new ClassSpecification for all possible classes, without comments or class members. |
|
ClassSpecification(ClassSpecification classSpecification)
Creates a new ClassSpecification that is a copy of the given specification. |
|
ClassSpecification(java.lang.String comments,
int requiredSetAccessFlags,
int requiredUnsetAccessFlags,
java.lang.String annotationType,
java.lang.String className,
java.lang.String extendsAnnotationType,
java.lang.String extendsClassName)
Creates a new ClassSpecification for the specified class(es), without class members. |
|
ClassSpecification(java.lang.String comments,
int requiredSetAccessFlags,
int requiredUnsetAccessFlags,
java.lang.String annotationType,
java.lang.String className,
java.lang.String extendsAnnotationType,
java.lang.String extendsClassName,
java.util.List fieldSpecifications,
java.util.List methodSpecifications)
Creates a new ClassSpecification for the specified classes and class members. |
|
| Method Summary | |
|---|---|
void |
addField(MemberSpecification fieldSpecification)
Specifies to keep the specified field(s) of this option's class(es). |
void |
addMethod(MemberSpecification methodSpecification)
Specifies to keep the specified method(s) of this option's class(es). |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object object)
|
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String comments
public int requiredSetAccessFlags
public int requiredUnsetAccessFlags
public final java.lang.String annotationType
public java.lang.String className
public final java.lang.String extendsAnnotationType
public final java.lang.String extendsClassName
public java.util.List fieldSpecifications
public java.util.List methodSpecifications
| Constructor Detail |
|---|
public ClassSpecification()
public ClassSpecification(ClassSpecification classSpecification)
public ClassSpecification(java.lang.String comments,
int requiredSetAccessFlags,
int requiredUnsetAccessFlags,
java.lang.String annotationType,
java.lang.String className,
java.lang.String extendsAnnotationType,
java.lang.String extendsClassName)
comments - provides optional comments on this
specification.requiredSetAccessFlags - the class access flags that must be set
in order for the class to apply.requiredUnsetAccessFlags - the class access flags that must be
unset in order for the class to apply.annotationType - the name of the class that must be an
annotation of the class in order for it
to apply. The name may be null to
specify that no annotation is required.className - the class name. The name may be null to
specify any class, or it may contain
"**", "*", or "?" wildcards.extendsAnnotationType - the name of the class of that must be
an annotation of the class that the
class must extend or implement in order
to apply. The name may be null to
specify that no annotation is required.extendsClassName - the name of the class that the class
must extend or implement in order to
apply. The name may be null to specify
any class.
public ClassSpecification(java.lang.String comments,
int requiredSetAccessFlags,
int requiredUnsetAccessFlags,
java.lang.String annotationType,
java.lang.String className,
java.lang.String extendsAnnotationType,
java.lang.String extendsClassName,
java.util.List fieldSpecifications,
java.util.List methodSpecifications)
comments - provides optional comments on this
specification.requiredSetAccessFlags - the class access flags that must be set
in order for the class to apply.requiredUnsetAccessFlags - the class access flags that must be
unset in order for the class to apply.annotationType - the name of the class that must be an
annotation of the class in order for it
to apply. The name may be null to
specify that no annotation is required.className - the class name. The name may be null to
specify any class, or it may contain
"**", "*", or "?" wildcards.extendsAnnotationType - the name of the class of that must be
an annotation of the class that the
class must extend or implement in order
to apply. The name may be null to
specify that no annotation is required.extendsClassName - the name of the class that the class
must extend or implement in order to
apply. The name may be null to specify
any class.fieldSpecifications - the field specifications.methodSpecifications - the method specifications.| Method Detail |
|---|
public void addField(MemberSpecification fieldSpecification)
fieldSpecification - the field specification.public void addMethod(MemberSpecification methodSpecification)
methodSpecification - the method specification.public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||