public enum InvokeArgumentValidator extends Enum<InvokeArgumentValidator> implements BodyValidator
BodyValidator that checks whether the length of the invoke statement's argument list matches the length of
the target method's parameter type list.| Enum Constant and Description |
|---|
INSTANCE |
| 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 InvokeArgumentValidator |
v() |
void |
validate(Body body,
List<ValidationException> exceptions)
Validates the given body and saves all validation errors in the given list.
|
static InvokeArgumentValidator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InvokeArgumentValidator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvokeArgumentValidator INSTANCE
public static InvokeArgumentValidator[] values()
for (InvokeArgumentValidator c : InvokeArgumentValidator.values()) System.out.println(c);
public static InvokeArgumentValidator 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 nullpublic static InvokeArgumentValidator v()
public void validate(Body body, List<ValidationException> exceptions)
BodyValidatorvalidate in interface BodyValidatorvalidate in interface Validator<Body>body - the body to checkexceptions - the list of exceptionspublic boolean isBasicValidator()
BodyValidatorisBasicValidator in interface BodyValidatorisBasicValidator in interface Validator<Body>Copyright © 2024 Soot OSS. All rights reserved.