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
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.
-
Constructor Summary
Constructors Constructor Description RuleBuilderParserProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.expression.spel.SpelCompilerMode
getCompilerMode()
Determines the mode for the `SpelCompiler`.int
getMaximumAutoGrowSize()
Tells the parser the maximum size to which a collection can automatically grow.boolean
isAutoGrowCollections()
Determines whether an array or collection should be expanded to accommodate an out-of-bounds index.boolean
isAutoGrowNullReferences()
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.String
toString()
-
-
-
Field Detail
-
compilerMode
protected org.springframework.expression.spel.SpelCompilerMode compilerMode
Determines the mode for the `SpelCompiler`.SpelCompilerMode.MIXED
is used to avoidClassCastExceptions
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.
-
-
Method Detail
-
getCompilerMode
public org.springframework.expression.spel.SpelCompilerMode getCompilerMode()
Determines the mode for the `SpelCompiler`.SpelCompilerMode.MIXED
is used to avoidClassCastExceptions
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 avoidClassCastExceptions
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.
-
-