Class AbstractParamTypeBuilder<R extends AbstractMethodRule>

    • Field Detail

      • methodName

        private final java.lang.String methodName
      • classLoader

        private final java.lang.ClassLoader classLoader
      • useExactMatch

        private boolean useExactMatch
      • paramType

        private java.lang.Class<?> paramType
      • fireOnBegin

        private boolean fireOnBegin
    • Constructor Detail

      • AbstractParamTypeBuilder

        AbstractParamTypeBuilder​(java.lang.String keyPattern,
                                 java.lang.String namespaceURI,
                                 RulesBinder mainBinder,
                                 LinkedRuleBuilder mainBuilder,
                                 java.lang.String methodName,
                                 java.lang.ClassLoader classLoader)
    • Method Detail

      • withParameterType

        public final AbstractParamTypeBuilder<R> withParameterType​(java.lang.Class<?> paramType)
        Sets the Java class of the method's argument. If you wish to use a primitive type, specify the corresonding Java wrapper class instead, such as java.lang.Boolean for a boolean parameter.
        Parameters:
        paramType - The Java class of the method's argument
        Returns:
        this builder instance
      • withParameterType

        public final AbstractParamTypeBuilder<R> withParameterType​(java.lang.String paramType)
        Sets the Java class name of the method's argument. If you wish to use a primitive type, specify the corresonding Java wrapper class instead, such as java.lang.Boolean for a boolean parameter.
        Parameters:
        paramType - The Java class name of the method's argument
        Returns:
        this builder instance
      • useExactMatch

        public final AbstractParamTypeBuilder<R> useExactMatch​(boolean useExactMatch)
        Sets exact matching being used.
        Parameters:
        useExactMatch - The exact matching being used
        Returns:
        this builder instance
      • fireOnBegin

        public final AbstractParamTypeBuilder<R> fireOnBegin​(boolean fireOnBegin)
        Marks the rule be invoked when begin or end events match.
        Parameters:
        fireOnBegin - true, to invoke the rule at begin, false for end
        Returns:
        this builder instance
      • getMethodName

        final java.lang.String getMethodName()
      • getParamType

        final java.lang.Class<?> getParamType()
      • isUseExactMatch

        final boolean isUseExactMatch()
      • isFireOnBegin

        final boolean isFireOnBegin()