Package org.apache.calcite.linq4j.tree
Class NewExpression
- java.lang.Object
-
- org.apache.calcite.linq4j.tree.AbstractNode
-
- org.apache.calcite.linq4j.tree.Expression
-
- org.apache.calcite.linq4j.tree.NewExpression
-
- All Implemented Interfaces:
Node
public class NewExpression extends Expression
Represents a constructor call.If
memberDeclarations
is not null (even if empty) represents an anonymous class.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Expression>
arguments
private int
hash
Cache the hash code for the expressionjava.util.List<MemberDeclaration>
memberDeclarations
java.lang.reflect.Type
type
-
Fields inherited from class org.apache.calcite.linq4j.tree.AbstractNode
nodeType
-
-
Constructor Summary
Constructors Constructor Description NewExpression(java.lang.reflect.Type type, java.util.List<Expression> arguments, java.util.List<MemberDeclaration> memberDeclarations)
-
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
-
type
public final java.lang.reflect.Type type
-
arguments
public final java.util.List<Expression> arguments
-
memberDeclarations
public final java.util.List<MemberDeclaration> memberDeclarations
-
hash
private int hash
Cache the hash code for the expression
-
-
Constructor Detail
-
NewExpression
public NewExpression(java.lang.reflect.Type type, java.util.List<Expression> arguments, java.util.List<MemberDeclaration> memberDeclarations)
-
-
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
-
-