Class CollectionParser

java.lang.Object
org.mvel2.util.CollectionParser

public class CollectionParser extends Object
This is the inline collection sub-parser. It produces a skeleton model of the collection which is in turn translated into a sequenced AST to produce the collection efficiently at runtime, and passed off to one of the JIT's if configured.
  • Field Details

    • property

      private char[] property
    • cursor

      private int cursor
    • start

      private int start
    • end

      private int end
    • type

      private int type
    • LIST

      public static final int LIST
      See Also:
    • ARRAY

      public static final int ARRAY
      See Also:
    • MAP

      public static final int MAP
      See Also:
    • colType

      private Class colType
    • pCtx

      private ParserContext pCtx
    • EMPTY_ARRAY

      private static final Object[] EMPTY_ARRAY
  • Constructor Details

    • CollectionParser

      public CollectionParser()
    • CollectionParser

      public CollectionParser(int type)
  • Method Details

    • parseCollection

      public Object parseCollection(char[] property, int start, int offset, boolean subcompile, ParserContext pCtx)
    • parseCollection

      public Object parseCollection(char[] property, int start, int offset, boolean subcompile, Class colType, ParserContext pCtx)
    • parseCollection

      private Object parseCollection(boolean subcompile)
    • subCompile

      private void subCompile(int start, int offset)
    • isStrongType

      private boolean isStrongType()
    • getCursor

      public int getCursor()