Class GroupingTranslator
java.lang.Object
org.broadleafcommerce.openadmin.web.rulebuilder.grouping.GroupingTranslator
- Author:
- jfischer, Elbert Bautista (elbertbautista)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompilePhrases(String segment, Group myGroup, boolean isNegation) createGroups(String mvel) protected intfindGroupEnd(String segment, int subgroupStartIndex) protected intfindGroupStart(String segment, int startPos) protected voidparseGroups(Group myGroup, String segment) protected voidsetGroupOperator(String segment, Group myGroup, boolean isAnd, boolean isOr, boolean isNot) protected StringstripWhiteSpace(String mvel)
-
Field Details
-
GROUPSTARTCHAR
- See Also:
-
GROUPENDCHAR
- See Also:
-
STATEMENTENDCHAR
- See Also:
-
SPACECHAR
- See Also:
-
-
Constructor Details
-
GroupingTranslator
public GroupingTranslator()
-
-
Method Details
-
createGroups
- Throws:
MVELTranslationException
-
findGroupStart
-
findGroupEnd
- Throws:
MVELTranslationException
-
stripWhiteSpace
-
parseGroups
- Throws:
MVELTranslationException
-
compilePhrases
protected void compilePhrases(String segment, Group myGroup, boolean isNegation) throws MVELTranslationException - Throws:
MVELTranslationException
-
setGroupOperator
protected void setGroupOperator(String segment, Group myGroup, boolean isAnd, boolean isOr, boolean isNot) throws MVELTranslationException - Throws:
MVELTranslationException
-