Package com.tonic.analysis.query.ast
Interface Condition
-
- All Known Implementing Classes:
Condition.And,Condition.Comparison,Condition.Count,Condition.Group,Condition.Not,Condition.Or,Condition.Quantifier,Condition.Sequence,Condition.True
public interface ConditionThe boolean expression tree of a query'sWHEREclause - the only place booleans live.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCondition.Andstatic classCondition.Comparisonaccessor OP operand- the single generic leaf.static classCondition.Countcount(<stream> [where (body)]) OP n- cardinality of a (optionally filtered) stream.static classCondition.Groupstatic classCondition.Notstatic classCondition.Orstatic classCondition.QuantExistence/universality of a sub-condition over a sub-subject stream.static classCondition.Quantifierhas|any|all|none <stream> where (body).static classCondition.SequenceSEQUENCE [ e1, e2, .. ]- an ordered, unanchored regex over the method's instruction stream.static classCondition.TrueConstant truth, used as an identity element when simplifying/splitting trees.static interfaceCondition.Visitor<R>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description <R> Raccept(Condition.Visitor<R> visitor)Dispatches to the visitor method for this node's variant.static Stringjoin(List<Condition> terms, String sep)Renders conditions in order, separated by the given text.
-
-
-
Method Detail
-
accept
<R> R accept(Condition.Visitor<R> visitor)
Dispatches to the visitor method for this node's variant.- Type Parameters:
R- the visitor's result type- Parameters:
visitor- the visitor to dispatch to- Returns:
- whatever the visitor returns
-
-