Package org.apache.calcite.linq4j.tree
Class BinaryExpression
- java.lang.Object
-
- org.apache.calcite.linq4j.tree.AbstractNode
-
- org.apache.calcite.linq4j.tree.Expression
-
- org.apache.calcite.linq4j.tree.BinaryExpression
-
- All Implemented Interfaces:
Node
public class BinaryExpression extends Expression
Represents an expression that has a binary operator.
-
-
Field Summary
Fields Modifier and Type Field Description Expression
expression0
Expression
expression1
private Primitive
primitive
-
Fields inherited from class org.apache.calcite.linq4j.tree.AbstractNode
nodeType, type
-
-
Constructor Summary
Constructors Constructor Description BinaryExpression(ExpressionType nodeType, java.lang.reflect.Type type, Expression expression0, Expression expression1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
accept(ExpressionWriter writer, int lprec, int rprec)
Expression
accept(Shuttle visitor)
<R> R
accept(Visitor<R> visitor)
private java.lang.RuntimeException
cannotEvaluate()
boolean
equals(java.lang.Object o)
java.lang.Object
evaluate(Evaluator evaluator)
int
hashCode()
-
Methods inherited from class org.apache.calcite.linq4j.tree.Expression
canReduce
-
Methods inherited from class org.apache.calcite.linq4j.tree.AbstractNode
accept, accept0, getNodeType, getType, toString
-
-
-
-
Field Detail
-
expression0
public final Expression expression0
-
expression1
public final Expression expression1
-
primitive
private final Primitive primitive
-
-
Constructor Detail
-
BinaryExpression
BinaryExpression(ExpressionType nodeType, java.lang.reflect.Type type, Expression expression0, Expression expression1)
-
-
Method Detail
-
accept
public Expression accept(Shuttle visitor)
- Specified by:
accept
in interfaceNode
- Specified by:
accept
in classExpression
-
accept
public <R> R accept(Visitor<R> visitor)
-
evaluate
public java.lang.Object evaluate(Evaluator evaluator)
- Overrides:
evaluate
in classAbstractNode
-
accept
void accept(ExpressionWriter writer, int lprec, int rprec)
- Overrides:
accept
in classAbstractNode
-
cannotEvaluate
private java.lang.RuntimeException cannotEvaluate()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classAbstractNode
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractNode
-
-