Package com.tonic.analysis.query.ast
Class Condition.Count
- java.lang.Object
-
- com.tonic.analysis.query.ast.Condition.Count
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tonic.analysis.query.ast.Condition
Condition.And, Condition.Comparison, Condition.Count, Condition.Group, Condition.Not, Condition.Or, Condition.Quant, Condition.Quantifier, Condition.Sequence, Condition.True, Condition.Visitor<R>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(Condition.Visitor<R> v)Dispatches to the visitor method for this node's variant.Conditionbody()Operatorop()Operandoperand()Accessorstream()StringtoString()
-
-
-
Constructor Detail
-
Count
public Count(Accessor stream, Condition body, Operator op, Operand operand)
Creates a cardinality test over a sub-subject stream.- Parameters:
stream- the accessor producing the sub-subjectsbody- the filter applied before counting, or null to count everythingop- the operator the count is tested withoperand- the value the count is tested against
-
-
Method Detail
-
stream
public Accessor stream()
- Returns:
- the counted stream accessor
-
body
public Condition body()
- Returns:
- the filter condition, or null to count all
-
op
public Operator op()
- Returns:
- the operator applied to the count
-
operand
public Operand operand()
- Returns:
- the operand the count is compared against
-
accept
public <R> R accept(Condition.Visitor<R> v)
Description copied from interface:ConditionDispatches to the visitor method for this node's variant.
-
-