org.springframework.expression.spel.standard
Interface SpelExpressionParserConfiguration


public interface SpelExpressionParserConfiguration

Bit flags that configure optional behaviour in the parser. Pass the necessary bits when calling the expression parser constructor.

Since:
3.0
Author:
Andy Clement

Field Summary
static int CreateObjectIfAttemptToReferenceNull
          This option applies to maps/collections and regular objects.
static int GrowListsOnIndexBeyondSize
          This option allows collections to grow if an attempt is made to index an element beyond the current size.
 

Field Detail

CreateObjectIfAttemptToReferenceNull

static final int CreateObjectIfAttemptToReferenceNull
This option applies to maps/collections and regular objects. If the initial part of an expression evaluates to null and then an attempt is made to resolve an index '[]' or property against it, and this option is set, then the relevant object will be constructed so that the index/property resolution can proceed.

See Also:
Constant Field Values

GrowListsOnIndexBeyondSize

static final int GrowListsOnIndexBeyondSize
This option allows collections to grow if an attempt is made to index an element beyond the current size. Rather than fail the collection is populated with elements up to the specified index.

See Also:
Constant Field Values