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 Expression
bound
int
dimension
java.util.List<Expression>
expressions
private int
hash
Cache the hash code for the expression-
Fields inherited from class org.apache.calcite.linq4j.tree.AbstractNode
nodeType, type
-
-
Constructor Summary
Constructors Constructor Description NewArrayExpression(java.lang.reflect.Type type, int dimension, Expression bound, java.util.List<Expression> expressions)
-
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 shuttle)
<R> R
accept(Visitor<R> visitor)
boolean
equals(java.lang.Object o)
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, evaluate, getNodeType, getType, toString
-
-
-
-
Field Detail
-
dimension
public final int dimension
-
bound
public final Expression bound
-
expressions
public final java.util.List<Expression> expressions
-
hash
private int hash
Cache the hash code for the expression
-
-
Constructor Detail
-
NewArrayExpression
public NewArrayExpression(java.lang.reflect.Type type, int dimension, Expression bound, java.util.List<Expression> expressions)
-
-
Method Detail
-
accept
public Expression accept(Shuttle shuttle)
- Specified by:
accept
in interfaceNode
- Specified by:
accept
in classExpression
-
accept
public <R> R accept(Visitor<R> visitor)
-
accept
void accept(ExpressionWriter writer, int lprec, int rprec)
- Overrides:
accept
in classAbstractNode
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classAbstractNode
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractNode
-
-