Class 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 autoGrowCollections
      Determines whether an array or collection should be expanded to accommodate an out-of-bounds index.
      protected boolean autoGrowNullReferences
      Tells the parser whether to automatically initialize (grow) null references.
      protected org.springframework.expression.spel.SpelCompilerMode compilerMode
      Determines the mode for the `SpelCompiler`.
      protected int maximumAutoGrowSize
      Tells the parser the maximum size to which a collection can automatically grow.
    • Field Detail

      • 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 Detail

      • RuleBuilderParserProperties

        public RuleBuilderParserProperties()
    • Method Detail

      • 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.