Package soot.jimple.validation
Enum FieldRefValidator
- java.lang.Object
-
- java.lang.Enum<FieldRefValidator>
-
- soot.jimple.validation.FieldRefValidator
-
- All Implemented Interfaces:
Serializable
,Comparable<FieldRefValidator>
,BodyValidator
,Validator<Body>
public enum FieldRefValidator extends Enum<FieldRefValidator> implements BodyValidator
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 FieldRefValidator
v()
void
validate(Body body, List<ValidationException> exceptions)
Checks the consistency of field references.static FieldRefValidator
valueOf(String name)
Returns the enum constant of this type with the specified name.static FieldRefValidator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final FieldRefValidator INSTANCE
-
-
Method Detail
-
values
public static FieldRefValidator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FieldRefValidator c : FieldRefValidator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FieldRefValidator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
v
public static FieldRefValidator v()
-
validate
public void validate(Body body, List<ValidationException> exceptions)
Checks the consistency of field references.- Specified by:
validate
in interfaceBodyValidator
- Specified by:
validate
in interfaceValidator<Body>
- Parameters:
body
- the body to checkexceptions
- the list of exceptions
-
isBasicValidator
public boolean isBasicValidator()
Description copied from interface:BodyValidator
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.- Specified by:
isBasicValidator
in interfaceBodyValidator
- Specified by:
isBasicValidator
in interfaceValidator<Body>
- Returns:
- whether this validator is a basic validator
-
-