Interface PlacementConstraintParser.ConstraintTokenizer
- All Superinterfaces:
Enumeration<String>
- All Known Implementing Classes:
PlacementConstraintParser.BaseStringTokenizer,PlacementConstraintParser.ConjunctionTokenizer,PlacementConstraintParser.MultipleConstraintsTokenizer,PlacementConstraintParser.SourceTagsTokenizer
- Enclosing class:
- PlacementConstraintParser
Tokenizer interface that used to parse an expression. It first
validates if the syntax of the given expression is valid, then traverse
the expression and parse it to an enumeration of strings. Each parsed
string can be further consumed by a
PlacementConstraintParser.ConstraintParser and
transformed to a PlacementConstraint.AbstractConstraint.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidvalidate()Validate the schema before actual parsing the expression.Methods inherited from interface java.util.Enumeration
asIterator, hasMoreElements, nextElement
-
Method Details
-
validate
Validate the schema before actual parsing the expression.- Throws:
PlacementConstraintParseException- when the placement constraint parser fails to parse an expression.
-