Interface JBBPIntegerValueEvaluator
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
IntConstValueEvaluator,JBBPExpressionEvaluator,JBBPOnlyFieldEvaluator
The Interface describes a class which can evaluate and provide an integer value.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptioninteval(JBBPBitInputStream inStream, int currentCompiledBlockOffset, JBBPCompiledBlock block, JBBPNamedNumericFieldMap fieldMap) Calculate an integer value.voidvisitItems(JBBPCompiledBlock block, int currentCompiledBlockOffset, ExpressionEvaluatorVisitor visitor) Visit all expression items
-
Method Details
-
eval
int eval(JBBPBitInputStream inStream, int currentCompiledBlockOffset, JBBPCompiledBlock block, JBBPNamedNumericFieldMap fieldMap) Calculate an integer value.- Parameters:
inStream- a bit input streamcurrentCompiledBlockOffset- the current offset in the compiled blockblock- a compiled script blockfieldMap- a named numeric field map- Returns:
- calculated value as integer
-
visitItems
void visitItems(JBBPCompiledBlock block, int currentCompiledBlockOffset, ExpressionEvaluatorVisitor visitor) Visit all expression items- Parameters:
block- the compiled block contains value, must not be nullcurrentCompiledBlockOffset- the offset of the data in the compiled blockvisitor- the visitor to visit items, must not be null- Since:
- 1.3.0
-