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 |
@Nullable List<MemberDeclaration> |
memberDeclarations |
Type |
type |
nodeType| Constructor and Description |
|---|
NewExpression(Type type,
List<Expression> arguments,
@Nullable List<MemberDeclaration> memberDeclarations) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
accept(Shuttle shuttle) |
<R> R |
accept(Visitor<R> visitor) |
boolean |
equals(@Nullable Object o) |
int |
hashCode() |
canReduceaccept, evaluate, getNodeType, getType, toStringpublic final Type type
public final List<Expression> arguments
public final @Nullable List<MemberDeclaration> memberDeclarations
public NewExpression(Type type, List<Expression> arguments, @Nullable List<MemberDeclaration> memberDeclarations)
public Expression accept(Shuttle shuttle)
accept in interface Nodeaccept in class Expressionpublic <R> R accept(Visitor<R> visitor)
public boolean equals(@Nullable Object o)
equals in class AbstractNodepublic int hashCode()
hashCode in class AbstractNodeCopyright © 2012-2021 Apache Software Foundation. All Rights Reserved.