public enum StackTypesValidator extends Enum<StackTypesValidator> implements BodyValidator
BafBody.
NOTE: This validator assumes that each local will hold a single Type throughout the method. However, that is
actually a stronger requirement than necessary for bytecode. In fact, after running the
LocalPacker pass, there will likely be cases that are reported by this validator which are
actually safe for bytecode.| 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 StackTypesValidator |
v() |
void |
validate(Body body,
List<ValidationException> exceptions)
Validates the given body and saves all validation errors in the given list.
|
static StackTypesValidator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StackTypesValidator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StackTypesValidator INSTANCE
public static StackTypesValidator[] values()
for (StackTypesValidator c : StackTypesValidator.values()) System.out.println(c);
public static StackTypesValidator 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 StackTypesValidator v()
public boolean isBasicValidator()
BodyValidatorisBasicValidator in interface BodyValidatorisBasicValidator in interface Validator<Body>public void validate(Body body, List<ValidationException> exceptions)
BodyValidatorvalidate in interface BodyValidatorvalidate in interface Validator<Body>body - the body to checkexceptions - the list of exceptionsCopyright © 2024 Soot OSS. All rights reserved.