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