public class MethodDeclaration extends MemberDeclaration
| Modifier and Type | Field and Description |
|---|---|
BlockStatement |
body |
int |
modifier |
String |
name |
List<ParameterExpression> |
parameters |
Type |
resultType |
| Constructor and Description |
|---|
MethodDeclaration(int modifier,
String name,
Type resultType,
List<ParameterExpression> parameters,
BlockStatement body) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ExpressionWriter writer) |
MemberDeclaration |
accept(Shuttle shuttle) |
<R> R |
accept(Visitor<R> visitor) |
boolean |
equals(Object o) |
int |
hashCode() |
public final int modifier
public final String name
public final Type resultType
public final List<ParameterExpression> parameters
public final BlockStatement body
public MethodDeclaration(int modifier,
String name,
Type resultType,
List<ParameterExpression> parameters,
BlockStatement body)
public MemberDeclaration accept(Shuttle shuttle)
accept in interface Nodeaccept in class MemberDeclarationpublic <R> R accept(Visitor<R> visitor)
public void accept(ExpressionWriter writer)
Copyright © 2012–2021 The Apache Software Foundation. All rights reserved.