Package org.apache.calcite.linq4j.tree
Class ConditionalStatement
- java.lang.Object
-
- org.apache.calcite.linq4j.tree.AbstractNode
-
- org.apache.calcite.linq4j.tree.Statement
-
- org.apache.calcite.linq4j.tree.ConditionalStatement
-
- All Implemented Interfaces:
Node
public class ConditionalStatement extends Statement
Represents an expression that has a conditional operator.With an odd number of expressions {c0, e0, c1, e1, ..., cn-1, en-1, en} represents "if (c0) e0 else if (c1) e1 ... else en"; with an even number of expressions {c0, e0, c1, e1, ..., cn-1, en-1} represents "if (c0) e0 else if (c1) e1 ... else if (cn-1) en-1".
-
-
Field Summary
Fields Modifier and Type Field Description List<Node>expressionList-
Fields inherited from class org.apache.calcite.linq4j.tree.AbstractNode
nodeType, type
-
-
Constructor Summary
Constructors Constructor Description ConditionalStatement(List<Node> expressionList)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Statementaccept(Shuttle shuttle)<R> Raccept(Visitor<R> visitor)(package private) voidaccept0(ExpressionWriter writer)booleanequals(Object o)inthashCode()private static <E> Elast(List<E> collection)-
Methods inherited from class org.apache.calcite.linq4j.tree.AbstractNode
accept, evaluate, getNodeType, getType, toString
-
-
-
-
Method Detail
-
accept
public <R> R accept(Visitor<R> visitor)
-
accept0
void accept0(ExpressionWriter writer)
- Overrides:
accept0in classAbstractNode
-
last
private static <E> E last(List<E> collection)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractNode
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractNode
-
-