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
memberDeclarationsis not null (even if empty) represents an anonymous class.
-
-
Field Summary
Fields Modifier and Type Field Description List<Expression>argumentsprivate inthashCache the hash code for the expressionList<MemberDeclaration>memberDeclarationsTypetype-
Fields inherited from class org.apache.calcite.linq4j.tree.AbstractNode
nodeType
-
-
Constructor Summary
Constructors Constructor Description NewExpression(Type type, List<Expression> arguments, List<MemberDeclaration> memberDeclarations)
-
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
-
type
public final Type type
-
arguments
public final List<Expression> arguments
-
memberDeclarations
public final List<MemberDeclaration> memberDeclarations
-
hash
private int hash
Cache the hash code for the expression
-
-
Constructor Detail
-
NewExpression
public NewExpression(Type type, List<Expression> arguments, List<MemberDeclaration> memberDeclarations)
-
-
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
-
-