Interface JBBPIntegerValueEvaluator

All Superinterfaces:
Serializable
All Known Implementing Classes:
IntConstValueEvaluator, JBBPExpressionEvaluator, JBBPOnlyFieldEvaluator

public interface JBBPIntegerValueEvaluator extends Serializable
The Interface describes a class which can evaluate and provide an integer value.
Since:
1.0
  • Method Details

    • eval

      int eval(JBBPBitInputStream inStream, int currentCompiledBlockOffset, JBBPCompiledBlock block, JBBPNamedNumericFieldMap fieldMap)
      Calculate an integer value.
      Parameters:
      inStream - a bit input stream
      currentCompiledBlockOffset - the current offset in the compiled block
      block - a compiled script block
      fieldMap - 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 null
      currentCompiledBlockOffset - the offset of the data in the compiled block
      visitor - the visitor to visit items, must not be null
      Since:
      1.3.0