Package org.mvel2

Class MVELInterpretedRuntime

java.lang.Object
org.mvel2.compiler.AbstractParser
org.mvel2.MVELInterpretedRuntime
All Implemented Interfaces:
Serializable, Parser

public class MVELInterpretedRuntime extends AbstractParser
The MVEL interpreted runtime, used for fast parse and execution of scripts.
See Also:
  • Field Details

    • LOG

      private static final Logger LOG
    • holdOverRegister

      private Object holdOverRegister
  • Constructor Details

  • Method Details

    • parse

      public Object parse()
    • parseAndExecuteInterpreted

      private Object parseAndExecuteInterpreted()
      Main interpreter loop.
      Returns:
      value
    • procBooleanOperator

      private int procBooleanOperator(int operator)
    • reduceRight

      private void reduceRight()
      This method peforms the equivilent of an XSWAP operation to flip the operator over to the top of the stack, and loads the stored values on the d-stack onto the main program stack.
    • hasMore

      private boolean hasMore()
    • unwindStatement

      private boolean unwindStatement(int operator)
      This method is called to unwind the current statement without any reduction or further parsing.
      Parameters:
      operator - -
      Returns:
      -