protected static enum TypeWriter.Default.ValidatingClassVisitor.Constraint extends Enum<TypeWriter.Default.ValidatingClassVisitor.Constraint>
| Enum Constant and Description |
|---|
ABSTRACT_CLASS
Constraints for an abstract class.
|
ANNOTATION
Constrains for an annotation type before Java 8.
|
INTERFACE
Constrains for an interface type before Java 8.
|
JAVA8_ANNOTATION
Constrains for an annotation type since Java 8.
|
JAVA8_INTERFACE
Constrains for an interface type since Java 8.
|
MANIFEST_CLASS
Constraints for a non-abstract class.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertDefault(String name)
Asserts if a default value is legal for a method.
|
protected void |
assertField(String name,
boolean isPublic,
boolean isStatic)
Asserts a field for being valid.
|
protected void |
assertMethod(String name,
boolean isAbstract,
boolean isPublic,
boolean isStatic,
boolean isDefaultIncompatible)
Asserts a method for being valid.
|
String |
toString() |
static TypeWriter.Default.ValidatingClassVisitor.Constraint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeWriter.Default.ValidatingClassVisitor.Constraint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeWriter.Default.ValidatingClassVisitor.Constraint MANIFEST_CLASS
public static final TypeWriter.Default.ValidatingClassVisitor.Constraint ABSTRACT_CLASS
public static final TypeWriter.Default.ValidatingClassVisitor.Constraint INTERFACE
public static final TypeWriter.Default.ValidatingClassVisitor.Constraint JAVA8_INTERFACE
public static final TypeWriter.Default.ValidatingClassVisitor.Constraint ANNOTATION
public static final TypeWriter.Default.ValidatingClassVisitor.Constraint JAVA8_ANNOTATION
public static TypeWriter.Default.ValidatingClassVisitor.Constraint[] values()
for (TypeWriter.Default.ValidatingClassVisitor.Constraint c : TypeWriter.Default.ValidatingClassVisitor.Constraint.values()) System.out.println(c);
public static TypeWriter.Default.ValidatingClassVisitor.Constraint valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected void assertField(String name, boolean isPublic, boolean isStatic)
name - The name of the field.isPublic - true if this field is public.isStatic - true if this field is static.protected void assertMethod(String name, boolean isAbstract, boolean isPublic, boolean isStatic, boolean isDefaultIncompatible)
name - The name of the method.isAbstract - true if the method is abstract.isPublic - true if this method is public.isStatic - true if this method is static.isDefaultIncompatible - true if a method's signature cannot describe an annotation property method.protected void assertDefault(String name)
name - The name of the method.public String toString()
toString in class Enum<TypeWriter.Default.ValidatingClassVisitor.Constraint>Copyright © 2014–2015. All rights reserved.