org.codehaus.jparsec.examples.java.ast.declaration
Class MethodDef
java.lang.Object
org.codehaus.jparsec.examples.common.ValueObject
org.codehaus.jparsec.examples.java.ast.declaration.MethodDef
- All Implemented Interfaces:
- Member
public final class MethodDef
- extends ValueObject
- implements Member
Represents a method definition.
- Author:
- Ben Yu
modifiers
public final List<Modifier> modifiers
typeParameters
public final List<TypeParameterDef> typeParameters
returnType
public final TypeLiteral returnType
name
public final String name
parameters
public final List<ParameterDef> parameters
exceptions
public final List<TypeLiteral> exceptions
defaultValue
public final Expression defaultValue
body
public final BlockStatement body
MethodDef
public MethodDef(List<Modifier> modifiers,
List<TypeParameterDef> typeParameters,
TypeLiteral returnType,
String name,
List<ParameterDef> parameters,
List<TypeLiteral> exceptions,
Expression defaultValue,
BlockStatement body)
toString
public String toString()
- Overrides:
toString in class ValueObject
Copyright © 2014. All rights reserved.