public class MethodDef extends Entity implements ParametersAware, ThrowsAware
Modifier and Type | Class and Description |
---|---|
static class |
MethodDef.Type
Psuedo-enum for method type.
|
Modifier | Constructor and Description |
---|---|
|
MethodDef() |
protected |
MethodDef(MethodDef.Type type) |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(ParameterDef param) |
void |
addParameter(String type,
String name) |
void |
addParameter(TypeDef type,
String name) |
void |
addThrows(TypeDef type) |
Set |
getParameters() |
ClassDef |
getParent() |
TypeDef |
getReturns() |
Set |
getSuperParameters() |
Set |
getThrows() |
MethodDef.Type |
getType() |
boolean |
isConstructor() |
void |
setParent(ClassDef parent) |
void |
setReturns(String type) |
void |
setReturns(TypeDef type) |
void |
setSuperParameters(Set superParameters) |
String |
signature() |
getJavaDoc, getModifiers, setJavaDoc, setJavaDoc
getName, setName
public MethodDef()
protected MethodDef(MethodDef.Type type)
public MethodDef.Type getType()
public boolean isConstructor()
public ClassDef getParent()
public void setParent(ClassDef parent)
public TypeDef getReturns()
public void setReturns(TypeDef type)
public void setReturns(String type)
public void addParameter(ParameterDef param)
addParameter
in interface ParametersAware
public Set getParameters()
getParameters
in interface ParametersAware
public void addThrows(TypeDef type)
public Set getThrows()
getThrows
in interface ThrowsAware
public Set getSuperParameters()
public void setSuperParameters(Set superParameters)
public String signature()
Copyright © 2006–2013 Codehaus. All rights reserved.