Package com.igormaznitsa.jbbp
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.
Controller to get value for every array field which size calculated by expression.
- Since:
- 2.1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintonCalculatedArraySize(JBBPParser parser, JBBPIntegerValueEvaluator expressionEvaluator, JBBPNamedFieldInfo fieldInfo, int calculatedArraySize) Called for every calculation of an array size by expression.
-
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 nullexpressionEvaluator- expression evaluator used for calculation, must not be nullfieldInfo- target field info, must not be nullcalculatedArraySize- calculated array size- Returns:
- array size which can be same as provided size or changed
-