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 |
private int |
hash
Cache the hash code for the expression
|
List<MemberDeclaration> |
memberDeclarations |
Type |
type |
nodeType| Constructor and Description |
|---|
NewExpression(Type type,
List<Expression> arguments,
List<MemberDeclaration> memberDeclarations) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
accept(ExpressionWriter writer,
int lprec,
int rprec) |
Expression |
accept(Visitor visitor) |
boolean |
equals(Object o) |
int |
hashCode() |
canReduceaccept, accept0, evaluate, getNodeType, getType, toStringpublic final Type type
public final List<Expression> arguments
public final List<MemberDeclaration> memberDeclarations
private int hash
public NewExpression(Type type, List<Expression> arguments, List<MemberDeclaration> memberDeclarations)
public Expression accept(Visitor visitor)
accept in interface Nodeaccept in class Expressionvoid accept(ExpressionWriter writer, int lprec, int rprec)
accept in class AbstractNodepublic boolean equals(Object o)
equals in class AbstractNodepublic int hashCode()
hashCode in class AbstractNodeCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.