Class StackCallParamRuleProvider
- java.lang.Object
-
- org.apache.commons.digester.annotations.providers.StackCallParamRuleProvider
-
- All Implemented Interfaces:
AnnotationRuleProvider<StackCallParam,MethodArgument,CallParamRule>
public final class StackCallParamRuleProvider extends java.lang.Object implements AnnotationRuleProvider<StackCallParam,MethodArgument,CallParamRule>
Provides instances ofCallParamRule
.- Since:
- 2.1
- See Also:
CallParamRule(int,int)
-
-
Field Summary
Fields Modifier and Type Field Description private int
paramIndex
private int
stackIndex
-
Constructor Summary
Constructors Constructor Description StackCallParamRuleProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CallParamRule
get()
Provides an instance ofRule
.void
init(StackCallParam annotation, MethodArgument element)
Initializes the provider.
-
-
-
Method Detail
-
init
public void init(StackCallParam annotation, MethodArgument element)
Initializes the provider.- Specified by:
init
in interfaceAnnotationRuleProvider<StackCallParam,MethodArgument,CallParamRule>
- Parameters:
annotation
- the annotation instance.element
- the annotated element reference.
-
get
public CallParamRule get()
Provides an instance ofRule
. Must never return null.- Specified by:
get
in interfaceAnnotationRuleProvider<StackCallParam,MethodArgument,CallParamRule>
- Returns:
- an instance of
Rule
.
-
-