Class PredicateArgs
java.lang.Object
com.google.gerrit.server.query.change.PredicateArgs
This class is used to extract comma separated values in a predicate.
If tags for the values are present (e.g. "branch=jb_2.3,vote=approved") then the args are placed in a map that maps tag to value (e.g., "branch" to "jb_2.3"). If no tag is present (e.g. "jb_2.3,approved") then the args are placed into a positional list. Args may be mixed so some may appear in the map and others in the positional list (e.g. "vote=approved,jb_2.3).
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionPredicateArgs
(String args) Parses query arguments intokeyValue
and/orpositional
.. -
Method Summary
-
Field Details
-
positional
-
keyValue
-
-
Constructor Details
-
PredicateArgs
Parses query arguments intokeyValue
and/orpositional
..Labels for these arguments should be kept in ChangeQueryBuilder as
ARG_ID_[argument name]
.- Parameters:
args
- arguments to be parsed- Throws:
QueryParseException
-