クラス SpelParserConfiguration

java.lang.ObjectSE
org.springframework.expression.spel.SpelParserConfiguration

public class SpelParserConfiguration extends ObjectSE
SpEL 式パーサーの構成オブジェクト。
導入:
3.0
作成者:
Juergen Hoeller, Phillip Webb, Andy Clement, Sam Brannen
関連事項:
  • フィールドの詳細

    • DEFAULT_MAX_EXPRESSION_LENGTH

      public static final int DEFAULT_MAX_EXPRESSION_LENGTH
      SpEL 式に許可されるデフォルトの最大長。
      導入:
      5.2.24
      関連事項:
    • SPRING_EXPRESSION_COMPILER_MODE_PROPERTY_NAME

      public static final StringSE 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 - 式のコンパイルのベースとして使用する ClassLoader
      autoGrowNullReferences - null 参照が自動的に大きくなる場合
      autoGrowCollections - コレクションが自動的に拡大する場合
      maximumAutoGrowSize - コレクションが自動拡張できる最大サイズ
    • SpelParserConfiguration

      public SpelParserConfiguration(@Nullable SpelCompilerMode compilerMode, @Nullable ClassLoaderSE compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize, int maximumExpressionLength)
      新しい SpelParserConfiguration インスタンスを作成します。
      パラメーター:
      compilerMode - この構成オブジェクトを使用するパーサーが使用するコンパイラーモード
      compilerClassLoader - 式のコンパイルのベースとして使用する ClassLoader
      autoGrowNullReferences - null 参照が自動的に大きくなる場合
      autoGrowCollections - コレクションが自動的に拡大する場合
      maximumAutoGrowSize - コレクションが自動拡張できる最大サイズ
      maximumExpressionLength - SpEL 式の最大長。正の数でなければなりません
      導入:
      5.2.25
  • メソッドの詳細

    • getCompilerMode

      public SpelCompilerMode getCompilerMode()
      この構成オブジェクトを使用して、パーサーのコンパイラーモードを返します。
    • getCompilerClassLoader

      @Nullable public ClassLoaderSE 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