Package org.apache.calcite.linq4j.tree
Class AbstractNode
- java.lang.Object
-
- org.apache.calcite.linq4j.tree.AbstractNode
-
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
ConditionalExpression
,Expression
,Statement
public abstract class AbstractNode extends java.lang.Object implements Node
Abstract implementation ofNode
.
-
-
Field Summary
Fields Modifier and Type Field Description ExpressionType
nodeType
java.lang.reflect.Type
type
-
Constructor Summary
Constructors Constructor Description AbstractNode(ExpressionType nodeType, java.lang.reflect.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ExpressionWriter writer)
(package private) void
accept(ExpressionWriter writer, int lprec, int rprec)
Node
accept(Shuttle shuttle)
(package private) void
accept0(ExpressionWriter writer)
boolean
equals(java.lang.Object o)
java.lang.Object
evaluate(Evaluator evaluator)
ExpressionType
getNodeType()
Gets the node type of this Expression.java.lang.reflect.Type
getType()
Gets the static type of the expression that this Expression represents.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
nodeType
public final ExpressionType nodeType
-
type
public final java.lang.reflect.Type type
-
-
Constructor Detail
-
AbstractNode
AbstractNode(ExpressionType nodeType, java.lang.reflect.Type type)
-
-
Method Detail
-
getNodeType
public ExpressionType getNodeType()
Gets the node type of this Expression.
-
getType
public java.lang.reflect.Type getType()
Gets the static type of the expression that this Expression represents.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
accept
public void accept(ExpressionWriter writer)
-
accept0
void accept0(ExpressionWriter writer)
-
accept
void accept(ExpressionWriter writer, int lprec, int rprec)
-
evaluate
public java.lang.Object evaluate(Evaluator evaluator)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-