Package org.mvel2.util
Class CollectionParser
- java.lang.Object
-
- org.mvel2.util.CollectionParser
-
public class CollectionParser extends java.lang.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 Summary
Fields Modifier and Type Field Description static int
ARRAY
private java.lang.Class
colType
private int
cursor
private static java.lang.Object[]
EMPTY_ARRAY
private int
end
static int
LIST
static int
MAP
private ParserContext
pCtx
private char[]
property
private int
start
private int
type
-
Constructor Summary
Constructors Constructor Description CollectionParser()
CollectionParser(int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCursor()
private boolean
isStrongType()
private java.lang.Object
parseCollection(boolean subcompile)
java.lang.Object
parseCollection(char[] property, int start, int offset, boolean subcompile, java.lang.Class colType, ParserContext pCtx)
java.lang.Object
parseCollection(char[] property, int start, int offset, boolean subcompile, ParserContext pCtx)
private void
subCompile(int start, int offset)
-
-
-
Field Detail
-
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:
- Constant Field Values
-
ARRAY
public static final int ARRAY
- See Also:
- Constant Field Values
-
MAP
public static final int MAP
- See Also:
- Constant Field Values
-
colType
private java.lang.Class colType
-
pCtx
private ParserContext pCtx
-
EMPTY_ARRAY
private static final java.lang.Object[] EMPTY_ARRAY
-
-
Method Detail
-
parseCollection
public java.lang.Object parseCollection(char[] property, int start, int offset, boolean subcompile, ParserContext pCtx)
-
parseCollection
public java.lang.Object parseCollection(char[] property, int start, int offset, boolean subcompile, java.lang.Class colType, ParserContext pCtx)
-
parseCollection
private java.lang.Object parseCollection(boolean subcompile)
-
subCompile
private void subCompile(int start, int offset)
-
isStrongType
private boolean isStrongType()
-
getCursor
public int getCursor()
-
-