类 SpelParserConfiguration
- java.lang.Object
- org.springframework.expression.spel.SpelParserConfiguration
 
- public class SpelParserConfiguration extends Object Configuration object for the SpEL expression parser.- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller, Phillip Webb, Andy Clement
- 另请参阅:
- SpelExpressionParser(SpelParserConfiguration)
 
- 构造器概要- 构造器 - 构造器 - 说明 - SpelParserConfiguration()Create a new- SpelParserConfigurationinstance with default settings.- SpelParserConfiguration(boolean autoGrowNullReferences, boolean autoGrowCollections)Create a new- SpelParserConfigurationinstance.- SpelParserConfiguration(boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize)Create a new- SpelParserConfigurationinstance.- SpelParserConfiguration(SpelCompilerMode compilerMode, ClassLoader compilerClassLoader)Create a new- SpelParserConfigurationinstance.- SpelParserConfiguration(SpelCompilerMode compilerMode, ClassLoader compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize)Create a new- SpelParserConfigurationinstance.
 - 方法概要- 所有方法 实例方法 具体方法 - 修饰符和类型 - 方法 - 说明 - ClassLoader- getCompilerClassLoader()Return the ClassLoader to use as the basis for expression compilation.- SpelCompilerMode- getCompilerMode()Return the configuration mode for parsers using this configuration object.- int- getMaximumAutoGrowSize()Return the maximum size that a collection can auto grow.- boolean- isAutoGrowCollections()Return- trueif collections should be automatically grown.- boolean- isAutoGrowNullReferences()Return- trueif- nullreferences should be automatically grown.
 
- 构造器详细资料- SpelParserConfiguration- public SpelParserConfiguration() Create a new- SpelParserConfigurationinstance with default settings.
 - SpelParserConfiguration- public SpelParserConfiguration(SpelCompilerMode compilerMode, ClassLoader compilerClassLoader) Create a new- SpelParserConfigurationinstance.- 参数:
- compilerMode- the compiler mode for the parser
- compilerClassLoader- the ClassLoader to use as the basis for expression compilation
 
 - SpelParserConfiguration- public SpelParserConfiguration(boolean autoGrowNullReferences, boolean autoGrowCollections) Create a new- SpelParserConfigurationinstance.- 参数:
- autoGrowNullReferences- if null references should automatically grow
- autoGrowCollections- if collections should automatically grow
- 另请参阅:
- SpelParserConfiguration(boolean, boolean, int)
 
 - SpelParserConfiguration- public SpelParserConfiguration(boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize) Create a new- SpelParserConfigurationinstance.- 参数:
- autoGrowNullReferences- if null references should automatically grow
- autoGrowCollections- if collections should automatically grow
- maximumAutoGrowSize- the maximum size that the collection can auto grow
 
 - SpelParserConfiguration- public SpelParserConfiguration(SpelCompilerMode compilerMode, ClassLoader compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize) Create a new- SpelParserConfigurationinstance.- 参数:
- compilerMode- the compiler mode that parsers using this configuration object should use
- compilerClassLoader- the ClassLoader to use as the basis for expression compilation
- autoGrowNullReferences- if null references should automatically grow
- autoGrowCollections- if collections should automatically grow
- maximumAutoGrowSize- the maximum size that the collection can auto grow
 
 
 - 方法详细资料- getCompilerMode- public SpelCompilerMode getCompilerMode() Return the configuration mode for parsers using this configuration object.
 - getCompilerClassLoader- public ClassLoader getCompilerClassLoader() Return the ClassLoader to use as the basis for expression compilation.
 - isAutoGrowNullReferences- public boolean isAutoGrowNullReferences() Return- trueif- nullreferences should be automatically grown.
 - isAutoGrowCollections- public boolean isAutoGrowCollections() Return- trueif collections should be automatically grown.
 - getMaximumAutoGrowSize- public int getMaximumAutoGrowSize() Return the maximum size that a collection can auto grow.