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
FieldsModifier and TypeFieldDescriptionprotected 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 -
Method Summary
Modifier and TypeMethodDescriptionorg.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.toString()
-
Field Details
-
compilerMode
protected org.springframework.expression.spel.SpelCompilerMode compilerModeDetermines 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 autoGrowNullReferencesTells the parser whether to automatically initialize (grow) null references. -
autoGrowCollections
protected boolean autoGrowCollectionsDetermines whether an array or collection should be expanded to accommodate an out-of-bounds index. -
maximumAutoGrowSize
protected int maximumAutoGrowSizeTells 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 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. -
toString
-