| java.lang.Object spoon.aval.processing.ValidationPoint
ValidationPoint | public class ValidationPoint (Code) | | Class representing a point in the program in which a validation should take
place. it contains:
- The annotated CtElement in the base program
- The annotation instance placed on the base program
- The annotation CtElement that is @Validated
- The @Validator annotation instance.
With this information, implementors of the
spoon.aval.Validator interface are to decide if the use of a given annotation is valid or not.
See Also: spoon.aval.Validator< Parameters: V - >The type of Validation Annotation. |
getDslElement | public CtReference getDslElement()(Code) | | A reference to the Dsl element that is annotated with the
@Validator.
If the validator is a structural one, the CtTypeReference type.if it is a value validator, a CtFieldReference representing theattribute. |
getProgramElement | public CtElement getProgramElement()(Code) | | The annotated program element
See Also: ElementType either: a CtClass, CtInterface, CtPackage, CtExecutable, CtField,CtParameter, or CtLocalVariable |
report | public static void report(Severity severity, CtElement element, String message, ProblemFixer... fix)(Code) | | Helper method called by a Validator to report an error, warning or
message as dictated by the severity parameter.
Parameters: severity - The severity of the report Parameters: element - The CtElement to which the report is associated Parameters: message - The message to report |
resetShouldStopFlag | static void resetShouldStopFlag()(Code) | | |
shouldStopProcessing | static boolean shouldStopProcessing()(Code) | | |
|
|