public class NewExpression extends Expression
If memberDeclarations is not null (even if empty) represents
an anonymous class.
| 限定符和类型 | 字段和说明 |
|---|---|
List<Expression> |
arguments |
@Nullable List<MemberDeclaration> |
memberDeclarations |
Type |
type |
nodeType| 构造器和说明 |
|---|
NewExpression(Type type,
List<Expression> arguments,
@Nullable List<MemberDeclaration> memberDeclarations) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 Nodeaccept 在类中 Expressionpublic <R> R accept(Visitor<R> visitor)
public boolean equals(@Nullable Object o)
equals 在类中 AbstractNodepublic int hashCode()
hashCode 在类中 AbstractNodeCopyright © 2012-2023 Apache Software Foundation. All Rights Reserved.