Class LabelPredicate
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.OrPredicate<ChangeData>
-
- com.google.gerrit.server.query.change.LabelPredicate
-
- All Implemented Interfaces:
Matchable<ChangeData>
public class LabelPredicate extends OrPredicate<ChangeData>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
LabelPredicate.Args
protected static class
LabelPredicate.Parsed
-
Field Summary
Fields Modifier and Type Field Description protected static int
MAX_LABEL_VALUE
protected String
value
-
Constructor Summary
Constructors Constructor Description LabelPredicate(ChangeQueryBuilder.Arguments a, String value, Set<Account.Id> accounts, AccountGroup.UUID group)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Predicate<ChangeData>
equalsLabelPredicate(LabelPredicate.Args args, String label, int expVal)
protected static Predicate<ChangeData>
magicLabelPredicate(LabelPredicate.Args args, MagicLabelVote mlv)
protected static Predicate<ChangeData>
noLabelQuery(LabelPredicate.Args args, String label)
protected static Predicate<ChangeData>
onePredicate(LabelPredicate.Args args, String label, int expVal)
protected static List<Predicate<ChangeData>>
predicates(LabelPredicate.Args args)
String
toString()
-
Methods inherited from class com.google.gerrit.index.query.OrPredicate
copy, equals, getChild, getChildCount, getChildren, getCost, hashCode, isMatchable, match
-
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, not, or, or, supportedForQueries
-
-
-
-
Field Detail
-
MAX_LABEL_VALUE
protected static final int MAX_LABEL_VALUE
- See Also:
- Constant Field Values
-
value
protected final String value
-
-
Constructor Detail
-
LabelPredicate
public LabelPredicate(ChangeQueryBuilder.Arguments a, String value, Set<Account.Id> accounts, AccountGroup.UUID group)
-
-
Method Detail
-
predicates
protected static List<Predicate<ChangeData>> predicates(LabelPredicate.Args args)
-
onePredicate
protected static Predicate<ChangeData> onePredicate(LabelPredicate.Args args, String label, int expVal)
-
noLabelQuery
protected static Predicate<ChangeData> noLabelQuery(LabelPredicate.Args args, String label)
-
equalsLabelPredicate
protected static Predicate<ChangeData> equalsLabelPredicate(LabelPredicate.Args args, String label, int expVal)
-
magicLabelPredicate
protected static Predicate<ChangeData> magicLabelPredicate(LabelPredicate.Args args, MagicLabelVote mlv)
-
toString
public String toString()
- Overrides:
toString
in classOrPredicate<ChangeData>
-
-