org.springframework.expression.spel.standard.SpelExpressionParser#SpelExpressionParser(SpelParserConfiguration)
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final boolean | |
| private final ClassLoader | |
| private final SpelCompilerMode | |
| public static final int | DEFAULT_MAX_EXPRESSION_LENGTH
Default maximum length permitted for a SpEL expression. |
| private static final SpelCompilerMode | |
| private final int | |
| private final int | |
| public static final String | SPRING_EXPRESSION_COMPILER_MODE_PROPERTY_NAME
System property to configure the default compiler mode for SpEL expression parsers: spring.expression.compiler.mode. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SpelParserConfiguration(SpelCompilerMode
the compiler mode for the parser compilerMode, ClassLoader the ClassLoader to use as the basis for expression compilation compilerClassLoader)Create a new |
| public | SpelParserConfiguration(boolean
if null references should automatically grow autoGrowNullReferences, boolean if collections should automatically grow autoGrowCollections)Create a new |
| public | SpelParserConfiguration(boolean
if null references should automatically grow autoGrowNullReferences, boolean if collections should automatically grow autoGrowCollections, int the maximum size that the collection can auto grow maximumAutoGrowSize)Create a new |
| public | SpelParserConfiguration(SpelCompilerMode
the compiler mode that parsers using this configuration object should use compilerMode, ClassLoader the ClassLoader to use as the basis for expression compilation compilerClassLoader, boolean if null references should automatically grow autoGrowNullReferences, boolean if collections should automatically grow autoGrowCollections, int the maximum size that the collection can auto grow maximumAutoGrowSize)Create a new |
| public | SpelParserConfiguration(SpelCompilerMode
the compiler mode that parsers using this configuration object should use compilerMode, ClassLoader the ClassLoader to use as the basis for expression compilation compilerClassLoader, boolean if null references should automatically grow autoGrowNullReferences, boolean if collections should automatically grow autoGrowCollections, int the maximum size that a collection can auto grow maximumAutoGrowSize, int the maximum length of a SpEL expression;
must be a positive number maximumExpressionLength)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public ClassLoader | |
| public SpelCompilerMode | |
| public int | |
| public int | getMaximumExpressionLength()
Return the maximum number of characters that a SpEL expression can contain. |
| public boolean | |
| public boolean |
| autoGrowCollections | back to summary |
|---|---|
| private final boolean autoGrowCollections | |
| autoGrowNullReferences | back to summary |
|---|---|
| private final boolean autoGrowNullReferences | |
| compilerClassLoader | back to summary |
|---|---|
| private final ClassLoader compilerClassLoader
| |
| compilerMode | back to summary |
|---|---|
| private final SpelCompilerMode compilerMode | |
| DEFAULT_MAX_EXPRESSION_LENGTH | back to summary |
|---|---|
| public static final int DEFAULT_MAX_EXPRESSION_LENGTH Default maximum length permitted for a SpEL expression.
| |
| defaultCompilerMode | back to summary |
|---|---|
| private static final SpelCompilerMode defaultCompilerMode | |
| maximumAutoGrowSize | back to summary |
|---|---|
| private final int maximumAutoGrowSize | |
| maximumExpressionLength | back to summary |
|---|---|
| private final int maximumExpressionLength | |
| SPRING_EXPRESSION_COMPILER_MODE_PROPERTY_NAME | back to summary |
|---|---|
| public static final String SPRING_EXPRESSION_COMPILER_MODE_PROPERTY_NAME System property to configure the default compiler mode for SpEL expression parsers: spring.expression.compiler.mode. | |
| SpelParserConfiguration | back to summary |
|---|---|
| public SpelParserConfiguration() Create a new | |
| SpelParserConfiguration | back to summary |
|---|---|
| public SpelParserConfiguration(SpelCompilerMode compilerMode, ClassLoader compilerClassLoader) Create a new
| |
| SpelParserConfiguration | back to summary |
|---|---|
| public SpelParserConfiguration(boolean autoGrowNullReferences, boolean autoGrowCollections) Create a new
| |
| SpelParserConfiguration | back to summary |
|---|---|
| public SpelParserConfiguration(boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize) Create a new
| |
| SpelParserConfiguration | back to summary |
|---|---|
| public SpelParserConfiguration(SpelCompilerMode compilerMode, ClassLoader compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize) Create a new
| |
| SpelParserConfiguration | back to summary |
|---|---|
| public SpelParserConfiguration(SpelCompilerMode compilerMode, ClassLoader compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize, int maximumExpressionLength) Create a new
| |
| getCompilerClassLoader | back to summary |
|---|---|
| public ClassLoader getCompilerClassLoader() Return the ClassLoader to use as the basis for expression compilation.
| |
| getCompilerMode | back to summary |
|---|---|
| public SpelCompilerMode getCompilerMode() Return the compiler mode for parsers using this configuration object. | |
| getMaximumAutoGrowSize | back to summary |
|---|---|
| public int getMaximumAutoGrowSize() Return the maximum size that a collection can auto grow. | |
| getMaximumExpressionLength | back to summary |
|---|---|
| public int getMaximumExpressionLength() Return the maximum number of characters that a SpEL expression can contain.
| |
| isAutoGrowCollections | back to summary |
|---|---|
| public boolean isAutoGrowCollections() Return | |
| isAutoGrowNullReferences | back to summary |
|---|---|
| public boolean isAutoGrowNullReferences() Return | |