Class CallParamBuilder

All Implemented Interfaces:
RuleProvider<CallParamRule>

public final class CallParamBuilder extends AbstractBackToLinkedRuleBuilder<CallParamRule>
Builder chained when invoking LinkedRuleBuilder.callParam().
Since:
3.0
  • Field Details

    • paramIndex

      private int paramIndex
    • stackIndex

      private int stackIndex
    • fromStack

      private boolean fromStack
    • attributeName

      private String attributeName
  • Constructor Details

  • Method Details

    • ofIndex

      public CallParamBuilder ofIndex(int paramIndex)
      Sets the zero-relative parameter number.
      Parameters:
      paramIndex - The zero-relative parameter number
      Returns:
      this builder instance
    • fromAttribute

      public CallParamBuilder fromAttribute(String attributeName)
      Sets the attribute from which to save the parameter value.
      Parameters:
      attributeName - The attribute from which to save the parameter value
      Returns:
      this builder instance
    • fromStack

      public CallParamBuilder fromStack(boolean fromStack)
      Flags the parameter to be set from the stack.
      Parameters:
      fromStack - the parameter flag to be set from the stack
      Returns:
      this builder instance
    • withStackIndex

      public CallParamBuilder withStackIndex(int stackIndex)
      Sets the position of the object from the top of the stack.
      Parameters:
      stackIndex - The position of the object from the top of the stack
      Returns:
      this builder instance
    • createRule

      protected CallParamRule createRule()
      Provides an instance of Rule. Must never return null.
      Specified by:
      createRule in class AbstractBackToLinkedRuleBuilder<CallParamRule>
      Returns:
      an instance of Rule.
      See Also: