Package soot.validation
Enum ClassFlagsValidator
- java.lang.Object
-
- java.lang.Enum<ClassFlagsValidator>
-
- soot.validation.ClassFlagsValidator
-
- All Implemented Interfaces:
Serializable,Comparable<ClassFlagsValidator>,ClassValidator,Validator<SootClass>
public enum ClassFlagsValidator extends Enum<ClassFlagsValidator> implements ClassValidator
Validator that checks for impossible combinations of class flags- Author:
- Steven Arzt
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisBasicValidator()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 ClassFlagsValidatorv()voidvalidate(SootClass sc, List<ValidationException> exceptions)Validates the given class and saves all validation errors in the given list.static ClassFlagsValidatorvalueOf(String name)Returns the enum constant of this type with the specified name.static ClassFlagsValidator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ClassFlagsValidator INSTANCE
-
-
Method Detail
-
values
public static ClassFlagsValidator[] 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 (ClassFlagsValidator c : ClassFlagsValidator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClassFlagsValidator 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 ClassFlagsValidator v()
-
validate
public void validate(SootClass sc, List<ValidationException> exceptions)
Description copied from interface:ClassValidatorValidates the given class and saves all validation errors in the given list.- Specified by:
validatein interfaceClassValidator- Specified by:
validatein interfaceValidator<SootClass>- Parameters:
sc- the class to checkexceptions- the list of exceptions
-
isBasicValidator
public boolean isBasicValidator()
Description copied from interface:ClassValidatorBasic 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:
isBasicValidatorin interfaceClassValidator- Specified by:
isBasicValidatorin interfaceValidator<SootClass>- Returns:
- whether this validator is a basic validator
-
-