public class ClassSpecification extends Object implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
String |
annotationType |
String |
className |
String |
comments |
String |
extendsAnnotationType |
String |
extendsClassName |
List |
fieldSpecifications |
List |
methodSpecifications |
int |
requiredSetAccessFlags |
int |
requiredUnsetAccessFlags |
| Constructor and Description |
|---|
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(String comments,
int requiredSetAccessFlags,
int requiredUnsetAccessFlags,
String annotationType,
String className,
String extendsAnnotationType,
String extendsClassName)
Creates a new ClassSpecification for the specified class(es), without
class members.
|
ClassSpecification(String comments,
int requiredSetAccessFlags,
int requiredUnsetAccessFlags,
String annotationType,
String className,
String extendsAnnotationType,
String extendsClassName,
List fieldSpecifications,
List methodSpecifications)
Creates a new ClassSpecification for the specified classes and class
members.
|
| Modifier and Type | Method and Description |
|---|---|
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).
|
Object |
clone() |
boolean |
equals(Object object) |
int |
hashCode() |
public final String comments
public int requiredSetAccessFlags
public int requiredUnsetAccessFlags
public final String annotationType
public String className
public final String extendsAnnotationType
public final String extendsClassName
public List fieldSpecifications
public List methodSpecifications
public ClassSpecification()
public ClassSpecification(ClassSpecification classSpecification)
public ClassSpecification(String comments, int requiredSetAccessFlags, int requiredUnsetAccessFlags, String annotationType, String className, String extendsAnnotationType, 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(String comments, int requiredSetAccessFlags, int requiredUnsetAccessFlags, String annotationType, String className, String extendsAnnotationType, String extendsClassName, List fieldSpecifications, 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.public void addField(MemberSpecification fieldSpecification)
fieldSpecification - the field specification.public void addMethod(MemberSpecification methodSpecification)
methodSpecification - the method specification.Copyright © 2015. All Rights Reserved.