Class RuleBuilderParserProperties
- java.lang.Object
-
- com.broadleafcommerce.rulesengine.autoconfigure.RuleBuilderParserProperties
-
@ConfigurationProperties("broadleaf.rulebuilder.evaluation") public class RuleBuilderParserProperties extends ObjectExternal configuration properties for Rule Builder's expression parser.
- Author:
- Nathan Moore (nathanmoore).
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanautoGrowCollectionsDetermines whether an array or collection should be expanded to accommodate an out-of-bounds index.protected booleanautoGrowNullReferencesTells the parser whether to automatically initialize (grow) null references.protected org.springframework.expression.spel.SpelCompilerModecompilerModeDetermines the mode for the `SpelCompiler`.protected intmaximumAutoGrowSizeTells 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.SpelCompilerModegetCompilerMode()Determines the mode for the `SpelCompiler`.intgetMaximumAutoGrowSize()Tells the parser the maximum size to which a collection can automatically grow.booleanisAutoGrowCollections()Determines whether an array or collection should be expanded to accommodate an out-of-bounds index.booleanisAutoGrowNullReferences()Tells the parser whether to automatically initialize (grow) null references.voidsetAutoGrowCollections(boolean autoGrowCollections)Determines whether an array or collection should be expanded to accommodate an out-of-bounds index.voidsetAutoGrowNullReferences(boolean autoGrowNullReferences)Tells the parser whether to automatically initialize (grow) null references.voidsetCompilerMode(org.springframework.expression.spel.SpelCompilerMode compilerMode)Determines the mode for the `SpelCompiler`.voidsetMaximumAutoGrowSize(int maximumAutoGrowSize)Tells the parser the maximum size to which a collection can automatically grow.StringtoString()
-
-
-
Field Detail
-
compilerMode
protected org.springframework.expression.spel.SpelCompilerMode compilerMode
Determines the mode for the `SpelCompiler`.SpelCompilerMode.MIXEDis used to avoidClassCastExceptionswhen 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.MIXEDis used to avoidClassCastExceptionswhen 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.MIXEDis used to avoidClassCastExceptionswhen 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.
-
-