public class NewExpression extends Expression
If memberDeclarations
is not null (even if empty) represents
an anonymous class.
Modifier and Type | Field and Description |
---|---|
List<Expression> |
arguments |
List<MemberDeclaration> |
memberDeclarations |
Type |
type |
nodeType
Constructor and Description |
---|
NewExpression(Type type,
List<Expression> arguments,
List<MemberDeclaration> memberDeclarations) |
Modifier and Type | Method and Description |
---|---|
Expression |
accept(Visitor visitor) |
boolean |
equals(Object o) |
int |
hashCode() |
canReduce
accept, evaluate, getNodeType, getType, toString
public final Type type
public final List<Expression> arguments
public final List<MemberDeclaration> memberDeclarations
public NewExpression(Type type, List<Expression> arguments, List<MemberDeclaration> memberDeclarations)
public Expression accept(Visitor visitor)
accept
in interface Node
accept
in class Expression
public boolean equals(Object o)
equals
in class AbstractNode
public int hashCode()
hashCode
in class AbstractNode
Copyright © 2012-2014 Julian Hyde. All Rights Reserved.