Package org.mvel2.util
Class CollectionParser
java.lang.Object
org.mvel2.util.CollectionParser
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
private boolean
private Object
parseCollection
(boolean subcompile) parseCollection
(char[] property, int start, int offset, boolean subcompile, Class colType, ParserContext pCtx) parseCollection
(char[] property, int start, int offset, boolean subcompile, ParserContext pCtx) private void
subCompile
(int start, int offset)
-
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
-
pCtx
-
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
-
subCompile
private void subCompile(int start, int offset) -
isStrongType
private boolean isStrongType() -
getCursor
public int getCursor()
-