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 Object implements Node
Abstract implementation ofNode.
-
-
Field Summary
Fields Modifier and Type Field Description ExpressionTypenodeTypeTypetype
-
Constructor Summary
Constructors Constructor Description AbstractNode(ExpressionType nodeType, Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ExpressionWriter writer)(package private) voidaccept(ExpressionWriter writer, int lprec, int rprec)Nodeaccept(Shuttle shuttle)(package private) voidaccept0(ExpressionWriter writer)booleanequals(Object o)Objectevaluate(Evaluator evaluator)ExpressionTypegetNodeType()Gets the node type of this Expression.TypegetType()Gets the static type of the expression that this Expression represents.inthashCode()StringtoString()
-
-
-
Field Detail
-
nodeType
public final ExpressionType nodeType
-
type
public final Type type
-
-
Constructor Detail
-
AbstractNode
AbstractNode(ExpressionType nodeType, Type type)
-
-
Method Detail
-
getNodeType
public ExpressionType getNodeType()
Gets the node type of this Expression.
-
getType
public Type getType()
Gets the static type of the expression that this Expression represents.
-
accept
public void accept(ExpressionWriter writer)
-
accept0
void accept0(ExpressionWriter writer)
-
accept
void accept(ExpressionWriter writer, int lprec, int rprec)
-
-