org.mvel2.util
Class CollectionParser

java.lang.Object
  extended by 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.

Author:
Christopher Brock

Field Summary
static int ARRAY
           
static int LIST
           
static int MAP
           
 
Constructor Summary
CollectionParser()
           
CollectionParser(int type)
           
 
Method Summary
 int getCursor()
           
 Object parseCollection(char[] property, boolean subcompile, Class colType, ParserContext pCtx)
           
 Object parseCollection(char[] property, boolean subcompile, ParserContext pCtx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

CollectionParser

public CollectionParser()

CollectionParser

public CollectionParser(int type)
Method Detail

parseCollection

public Object parseCollection(char[] property,
                              boolean subcompile,
                              ParserContext pCtx)

parseCollection

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

getCursor

public int getCursor()


Copyright © 2011. All Rights Reserved.