クラス SpelParserConfiguration
java.lang.ObjectSE
org.springframework.expression.spel.SpelParserConfiguration
SpEL 式パーサーの構成オブジェクト。
- 導入:
- 3.0
- 作成者:
- Juergen Hoeller, Phillip Webb, Andy Clement, Sam Brannen
- 関連事項:
フィールドのサマリー
フィールド修飾子と型フィールド説明static final intSpEL 式に許可されるデフォルトの最大長: 10000。static final StringSESpEL 式パーサーのデフォルトのコンパイラーモードを構成するためのシステムプロパティ: "spring.expression.compiler.mode"。コンストラクターの概要
コンストラクターコンストラクター説明デフォルト設定で新しいSpelParserConfigurationインスタンスを作成します。SpelParserConfiguration(boolean autoGrowNullReferences, boolean autoGrowCollections) 新しいSpelParserConfigurationインスタンスを作成します。SpelParserConfiguration(boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize) 新しいSpelParserConfigurationインスタンスを作成します。SpelParserConfiguration(@Nullable SpelCompilerMode compilerMode, @Nullable ClassLoaderSE compilerClassLoader) 新しいSpelParserConfigurationインスタンスを作成します。SpelParserConfiguration(@Nullable SpelCompilerMode compilerMode, @Nullable ClassLoaderSE compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize) 新しいSpelParserConfigurationインスタンスを作成します。SpelParserConfiguration(@Nullable SpelCompilerMode compilerMode, @Nullable ClassLoaderSE compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize, int maximumExpressionLength) 新しいSpelParserConfigurationインスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明式のコンパイルの基礎として使用する ClassLoader を返します。この構成オブジェクトを使用して、パーサーのコンパイラーモードを返します。intコレクションが自動拡張できる最大サイズを返します。intSpEL 式に含めることができる最大文字数を返します。booleanコレクションを自動的に拡張する必要がある場合は、trueを返します。booleannull参照を自動的に拡張する必要がある場合は、trueを返します。
フィールドの詳細
DEFAULT_MAX_EXPRESSION_LENGTH
public static final int DEFAULT_MAX_EXPRESSION_LENGTHSpEL 式に許可されるデフォルトの最大長: 10000。- 導入:
- 5.2.24
- 関連事項:
SPRING_EXPRESSION_COMPILER_MODE_PROPERTY_NAME
SpEL 式パーサーのデフォルトのコンパイラーモードを構成するためのシステムプロパティ: "spring.expression.compiler.mode"。- 関連事項:
コンストラクターの詳細
SpelParserConfiguration
public SpelParserConfiguration()デフォルト設定で新しいSpelParserConfigurationインスタンスを作成します。SpelParserConfiguration
public SpelParserConfiguration(@Nullable SpelCompilerMode compilerMode, @Nullable ClassLoaderSE compilerClassLoader) 新しいSpelParserConfigurationインスタンスを作成します。- パラメーター:
compilerMode- パーサーのコンパイラーモードcompilerClassLoader- 式のコンパイルのベースとして使用する ClassLoader
SpelParserConfiguration
public SpelParserConfiguration(boolean autoGrowNullReferences, boolean autoGrowCollections) 新しいSpelParserConfigurationインスタンスを作成します。- パラメーター:
autoGrowNullReferences- null 参照が自動的に大きくなる場合autoGrowCollections- コレクションが自動的に拡大する場合- 関連事項:
SpelParserConfiguration
public SpelParserConfiguration(boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize) 新しいSpelParserConfigurationインスタンスを作成します。- パラメーター:
autoGrowNullReferences- null 参照が自動的に大きくなる場合autoGrowCollections- コレクションが自動的に拡大する場合maximumAutoGrowSize- コレクションが自動拡張できる最大サイズ
SpelParserConfiguration
public SpelParserConfiguration(@Nullable SpelCompilerMode compilerMode, @Nullable ClassLoaderSE compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize) 新しいSpelParserConfigurationインスタンスを作成します。- パラメーター:
compilerMode- この構成オブジェクトを使用するパーサーが使用するコンパイラーモードcompilerClassLoader- 式のコンパイルのベースとして使用する ClassLoaderautoGrowNullReferences- null 参照が自動的に大きくなる場合autoGrowCollections- コレクションが自動的に拡大する場合maximumAutoGrowSize- コレクションが自動拡張できる最大サイズ
SpelParserConfiguration
public SpelParserConfiguration(@Nullable SpelCompilerMode compilerMode, @Nullable ClassLoaderSE compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize, int maximumExpressionLength) 新しいSpelParserConfigurationインスタンスを作成します。- パラメーター:
compilerMode- この構成オブジェクトを使用するパーサーが使用するコンパイラーモードcompilerClassLoader- 式のコンパイルのベースとして使用する ClassLoaderautoGrowNullReferences- null 参照が自動的に大きくなる場合autoGrowCollections- コレクションが自動的に拡大する場合maximumAutoGrowSize- コレクションが自動拡張できる最大サイズmaximumExpressionLength- SpEL 式の最大長。正の数でなければなりません- 導入:
- 5.2.25
メソッドの詳細
getCompilerMode
この構成オブジェクトを使用して、パーサーのコンパイラーモードを返します。getCompilerClassLoader
式のコンパイルの基礎として使用する ClassLoader を返します。isAutoGrowNullReferences
public boolean isAutoGrowNullReferences()null参照を自動的に拡張する必要がある場合は、trueを返します。isAutoGrowCollections
public boolean isAutoGrowCollections()コレクションを自動的に拡張する必要がある場合は、trueを返します。getMaximumAutoGrowSize
public int getMaximumAutoGrowSize()コレクションが自動拡張できる最大サイズを返します。getMaximumExpressionLength
public int getMaximumExpressionLength()SpEL 式に含めることができる最大文字数を返します。- 導入:
- 5.2.25