build method

Creates the configuration. Throws an ArgumentError when the spring.expression.maxOperations define is invalid and no maximum was set here.

Implementation

SpelParserConfiguration build() => SpelParserConfiguration._(
  autoGrowNullReferences: _autoGrowNullReferences,
  autoGrowCollections: _autoGrowCollections,
  maximumAutoGrowSize: _maximumAutoGrowSize,
  maximumExpressionLength: _maximumExpressionLength,
  maximumOperations:
      _maximumOperations ?? SpelParserConfiguration._defaultMaxOperations(),
  maximumNestingDepth: _maximumNestingDepth,
);