Interface JBBPParserExpressionArraySizeController

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface JBBPParserExpressionArraySizeController
Controller to get value for every array field which size calculated by expression.
Since:
2.1.0
See Also:
  • Method Details

    • onCalculatedArraySize

      int onCalculatedArraySize(JBBPParser parser, JBBPIntegerValueEvaluator expressionEvaluator, JBBPNamedFieldInfo fieldInfo, int calculatedArraySize)
      Called for every calculation of an array size by expression.
      Parameters:
      parser - source parser, must not be null
      expressionEvaluator - expression evaluator used for calculation, must not be null
      fieldInfo - target field info, must not be null
      calculatedArraySize - calculated array size
      Returns:
      array size which can be same as provided size or changed