Class RuleBuilderParserProperties

java.lang.Object
com.broadleafcommerce.rulesengine.autoconfigure.RuleBuilderParserProperties

@ConfigurationProperties("broadleaf.rulebuilder.evaluation") public class RuleBuilderParserProperties extends Object

External configuration properties for Rule Builder's expression parser.

Author:
Nathan Moore (nathanmoore).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    Determines whether an array or collection should be expanded to accommodate an out-of-bounds index.
    protected boolean
    Tells the parser whether to automatically initialize (grow) null references.
    protected org.springframework.expression.spel.SpelCompilerMode
    Determines the mode for the `SpelCompiler`.
    protected int
    Tells the parser the maximum size to which a collection can automatically grow.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.expression.spel.SpelCompilerMode
    Determines the mode for the `SpelCompiler`.
    int
    Tells the parser the maximum size to which a collection can automatically grow.
    boolean
    Determines whether an array or collection should be expanded to accommodate an out-of-bounds index.
    boolean
    Tells the parser whether to automatically initialize (grow) null references.
    void
    setAutoGrowCollections(boolean autoGrowCollections)
    Determines whether an array or collection should be expanded to accommodate an out-of-bounds index.
    void
    setAutoGrowNullReferences(boolean autoGrowNullReferences)
    Tells the parser whether to automatically initialize (grow) null references.
    void
    setCompilerMode(org.springframework.expression.spel.SpelCompilerMode compilerMode)
    Determines the mode for the `SpelCompiler`.
    void
    setMaximumAutoGrowSize(int maximumAutoGrowSize)
    Tells the parser the maximum size to which a collection can automatically grow.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • compilerMode

      protected org.springframework.expression.spel.SpelCompilerMode compilerMode
      Determines the mode for the `SpelCompiler`. SpelCompilerMode.MIXED is used to avoid ClassCastExceptions when executing the same compiled expression against root objects of different classes.
    • autoGrowNullReferences

      protected boolean autoGrowNullReferences
      Tells the parser whether to automatically initialize (grow) null references.
    • autoGrowCollections

      protected boolean autoGrowCollections
      Determines whether an array or collection should be expanded to accommodate an out-of-bounds index.
    • maximumAutoGrowSize

      protected int maximumAutoGrowSize
      Tells the parser the maximum size to which a collection can automatically grow.
  • Constructor Details

    • RuleBuilderParserProperties

      public RuleBuilderParserProperties()
  • Method Details

    • getCompilerMode

      public org.springframework.expression.spel.SpelCompilerMode getCompilerMode()
      Determines the mode for the `SpelCompiler`. SpelCompilerMode.MIXED is used to avoid ClassCastExceptions when executing the same compiled expression against root objects of different classes.
    • isAutoGrowNullReferences

      public boolean isAutoGrowNullReferences()
      Tells the parser whether to automatically initialize (grow) null references.
    • isAutoGrowCollections

      public boolean isAutoGrowCollections()
      Determines whether an array or collection should be expanded to accommodate an out-of-bounds index.
    • getMaximumAutoGrowSize

      public int getMaximumAutoGrowSize()
      Tells the parser the maximum size to which a collection can automatically grow.
    • setCompilerMode

      public void setCompilerMode(org.springframework.expression.spel.SpelCompilerMode compilerMode)
      Determines the mode for the `SpelCompiler`. SpelCompilerMode.MIXED is used to avoid ClassCastExceptions when executing the same compiled expression against root objects of different classes.
    • setAutoGrowNullReferences

      public void setAutoGrowNullReferences(boolean autoGrowNullReferences)
      Tells the parser whether to automatically initialize (grow) null references.
    • setAutoGrowCollections

      public void setAutoGrowCollections(boolean autoGrowCollections)
      Determines whether an array or collection should be expanded to accommodate an out-of-bounds index.
    • setMaximumAutoGrowSize

      public void setMaximumAutoGrowSize(int maximumAutoGrowSize)
      Tells the parser the maximum size to which a collection can automatically grow.
    • toString

      public String toString()
      Overrides:
      toString in class Object