Package sootup.core.validation
Class MethodDeclarationValidator
java.lang.Object
sootup.core.validation.MethodDeclarationValidator
- All Implemented Interfaces:
ClassValidator
Validates classes to make sure that all method signatures are valid and does not contain
impossible method modifier combinations
- Author:
- Akshita Dubey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanBasic 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.voidvalidate(SootClass sc, List<ValidationException> exceptions) Validates the given class and saves all validation errors in the given list.
-
Constructor Details
-
MethodDeclarationValidator
public MethodDeclarationValidator()
-
-
Method Details
-
validate
Description copied from interface:ClassValidatorValidates the given class and saves all validation errors in the given list.- Specified by:
validatein interfaceClassValidator- Parameters:
sc- the class to check
-
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- Returns:
- whether this validator is a basic validator
-