Class AbstractOptimizer

java.lang.Object
org.mvel2.compiler.AbstractParser
org.mvel2.optimizers.AbstractOptimizer
All Implemented Interfaces:
Serializable, Parser
Direct Known Subclasses:
ASMAccessorOptimizer, DynamicOptimizer, PropertyVerifier, ReflectiveAccessorOptimizer

public class AbstractOptimizer extends AbstractParser
See Also:
  • Field Details

    • BEAN

      protected static final int BEAN
      See Also:
    • METH

      protected static final int METH
      See Also:
    • COL

      protected static final int COL
      See Also:
    • WITH

      protected static final int WITH
      See Also:
    • collection

      protected boolean collection
    • nullSafe

      protected boolean nullSafe
    • currType

      protected Class currType
    • staticAccess

      protected boolean staticAccess
    • tkStart

      protected int tkStart
  • Constructor Details

    • AbstractOptimizer

      protected AbstractOptimizer()
    • AbstractOptimizer

      protected AbstractOptimizer(ParserContext pCtx)
  • Method Details

    • tryStaticAccess

      protected Object tryStaticAccess()
      Try static access of the property, and return an instance of the Field, Method of Class if successful.
      Returns:
      - Field, Method or Class instance.
    • nextSubToken

      protected int nextSubToken()
    • capture

      protected String capture()
    • whiteSpaceSkip

      protected void whiteSpaceSkip()
      Skip to the next non-whitespace position.
    • scanTo

      protected boolean scanTo(char c)
      Parameters:
      c - - character to scan to.
      Returns:
      - returns true is end of statement is hit, false if the scan scar is countered.
    • findLastUnion

      protected int findLastUnion()