public enum NewValidator extends java.lang.Enum<NewValidator> implements BodyValidator
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
static boolean |
MUST_CALL_CONSTRUCTOR_BEFORE_RETURN |
Modifier and Type | Method and Description |
---|---|
boolean |
isBasicValidator()
Basic validators run essential checks and are run always if validate is called.
If this method returns false and the caller of the validator respects this property, the checks will only be run if the debug or validation option is activated. |
static NewValidator |
v() |
void |
validate(Body body,
java.util.List<ValidationException> exceptions)
Checks whether after each new-instruction a constructor call follows.
|
static NewValidator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NewValidator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NewValidator INSTANCE
public static boolean MUST_CALL_CONSTRUCTOR_BEFORE_RETURN
public static NewValidator[] values()
for (NewValidator c : NewValidator.values()) System.out.println(c);
public static NewValidator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static NewValidator v()
public void validate(Body body, java.util.List<ValidationException> exceptions)
validate
in interface BodyValidator
body
- the body to checkexceptions
- the list of exceptionspublic boolean isBasicValidator()
BodyValidator
isBasicValidator
in interface BodyValidator