Package org.apache.calcite.linq4j.tree
Class NewArrayExpression
- java.lang.Object
-
- org.apache.calcite.linq4j.tree.AbstractNode
-
- org.apache.calcite.linq4j.tree.Expression
-
- org.apache.calcite.linq4j.tree.NewArrayExpression
-
- All Implemented Interfaces:
Node
public class NewArrayExpression extends Expression
Represents creating a new array and possibly initializing the elements of the new array.
-
-
Field Summary
Fields Modifier and Type Field Description ExpressionboundintdimensionList<Expression>expressionsprivate inthashCache the hash code for the expression-
Fields inherited from class org.apache.calcite.linq4j.tree.AbstractNode
nodeType, type
-
-
Constructor Summary
Constructors Constructor Description NewArrayExpression(Type type, int dimension, Expression bound, List<Expression> expressions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaccept(ExpressionWriter writer, int lprec, int rprec)Expressionaccept(Shuttle shuttle)<R> Raccept(Visitor<R> visitor)booleanequals(Object o)inthashCode()-
Methods inherited from class org.apache.calcite.linq4j.tree.AbstractNode
accept, accept0, evaluate, getNodeType, getType, toString
-
Methods inherited from class org.apache.calcite.linq4j.tree.Expression
canReduce
-
-
-
-
Field Detail
-
dimension
public final int dimension
-
bound
public final Expression bound
-
expressions
public final List<Expression> expressions
-
hash
private int hash
Cache the hash code for the expression
-
-
Constructor Detail
-
NewArrayExpression
public NewArrayExpression(Type type, int dimension, Expression bound, List<Expression> expressions)
-
-
Method Detail
-
accept
public Expression accept(Shuttle shuttle)
- Specified by:
acceptin interfaceNode- Specified by:
acceptin classExpression
-
accept
public <R> R accept(Visitor<R> visitor)
-
accept
void accept(ExpressionWriter writer, int lprec, int rprec)
- Overrides:
acceptin classAbstractNode
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractNode
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractNode
-
-