public final class MethodHandler extends java.lang.Object implements DigesterLoaderHandler<java.lang.annotation.Annotation,java.lang.reflect.Method>
SetNextRuleProvider
and
SetRootRuleProvider
.Modifier and Type | Field and Description |
---|---|
private static int |
SUPPORTED_ARGS
The default args size the method has to have in order to be analyzed.
|
Constructor and Description |
---|
MethodHandler() |
Modifier and Type | Method and Description |
---|---|
private <A extends java.lang.annotation.Annotation,R extends Rule> |
doHandle(A methodAnnotation,
java.lang.annotation.Annotation annotation,
java.lang.reflect.Method method,
java.lang.Class<?> type,
FromAnnotationsRuleSet ruleSet) |
private void |
doHandle(java.lang.annotation.Annotation methodAnnotation,
java.lang.reflect.Method method,
java.lang.Class<?> type,
FromAnnotationsRuleSet ruleSet) |
void |
handle(java.lang.annotation.Annotation annotation,
java.lang.reflect.Method element,
FromAnnotationsRuleSet ruleSet)
Handles the current visited element with the related current annotation.
|
private static final int SUPPORTED_ARGS
public void handle(java.lang.annotation.Annotation annotation, java.lang.reflect.Method element, FromAnnotationsRuleSet ruleSet)
handle
in interface DigesterLoaderHandler<java.lang.annotation.Annotation,java.lang.reflect.Method>
annotation
- the current visited annotation.element
- the current visited element.ruleSet
- the annotations RuleSet
where providers have to be
added.private void doHandle(java.lang.annotation.Annotation methodAnnotation, java.lang.reflect.Method method, java.lang.Class<?> type, FromAnnotationsRuleSet ruleSet)
private <A extends java.lang.annotation.Annotation,R extends Rule> void doHandle(A methodAnnotation, java.lang.annotation.Annotation annotation, java.lang.reflect.Method method, java.lang.Class<?> type, FromAnnotationsRuleSet ruleSet)