SpelParserConfigurationBuilder class final
Builds a SpelParserConfiguration, starting from the defaults.
Get one from SpelParserConfiguration.builder, call the options you want to change, then build. Every limit must be positive (the auto- grow size may be 0); a wrong value throws an ArgumentError at once.
// Short expressions only, and null references are created on demand.
final configuration = SpelParserConfiguration.builder()
.autoGrowNullReferences()
.maximumExpressionLength(500)
.build();
Spring (Java):
SpelParserConfiguration configuration = SpelParserConfiguration.builder()
.autoGrowNullReferences()
.maximumExpressionLength(500)
.build();
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
autoGrowCollections(
) → SpelParserConfigurationBuilder - Turns on SpelParserConfiguration.autoGrowCollections: lists indexed past their end grow.
-
autoGrowNullReferences(
) → SpelParserConfigurationBuilder -
Turns on SpelParserConfiguration.autoGrowNullReferences: a
nullproperty followed by.xor[i]is replaced by a new object. -
build(
) → SpelParserConfiguration -
Creates the configuration. Throws an ArgumentError when the
spring.expression.maxOperationsdefine is invalid and no maximum was set here. -
maximumAutoGrowSize(
int size) → SpelParserConfigurationBuilder - Sets the largest size a list may grow to (not negative; 0 disables growing).
-
maximumExpressionLength(
int length) → SpelParserConfigurationBuilder - Sets the longest accepted expression, in characters (positive).
-
maximumNestingDepth(
int depth) → SpelParserConfigurationBuilder - Sets the deepest accepted nesting (positive).
-
maximumOperations(
int operations) → SpelParserConfigurationBuilder -
Sets the most operations per evaluation (positive), instead of the
default or the
spring.expression.maxOperationsdefine. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited