org.codehaus.gmaven.runtime.support.stubgen.model
Class MethodDef
java.lang.Object
org.codehaus.gmaven.runtime.support.stubgen.model.Element
org.codehaus.gmaven.runtime.support.stubgen.model.NamedElement
org.codehaus.gmaven.runtime.support.stubgen.model.Entity
org.codehaus.gmaven.runtime.support.stubgen.model.MethodDef
- All Implemented Interfaces:
- Serializable, JavaDocAware, ModifiersAware, NameAware, ParametersAware, ThrowsAware
- Direct Known Subclasses:
- ConstructorDef
public class MethodDef
- extends Entity
- implements ParametersAware, ThrowsAware
Representation of a method definition.
- Version:
- $Id: MethodDef.java 18 2009-07-16 09:39:40Z user57 $
- Author:
- Jason Dillon
- See Also:
- Serialized Form
Nested Class Summary |
static class |
MethodDef.Type
Psuedo-enum for method type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodDef
public MethodDef()
MethodDef
protected MethodDef(MethodDef.Type type)
getType
public MethodDef.Type getType()
isConstructor
public boolean isConstructor()
getParent
public ClassDef getParent()
setParent
public void setParent(ClassDef parent)
getReturns
public TypeDef getReturns()
setReturns
public void setReturns(TypeDef type)
setReturns
public void setReturns(String type)
addParameter
public void addParameter(ParameterDef param)
- Specified by:
addParameter
in interface ParametersAware
addParameter
public void addParameter(TypeDef type,
String name)
addParameter
public void addParameter(String type,
String name)
getParameters
public Set getParameters()
- Specified by:
getParameters
in interface ParametersAware
addThrows
public void addThrows(TypeDef type)
getThrows
public Set getThrows()
- Specified by:
getThrows
in interface ThrowsAware
getSuperParameters
public Set getSuperParameters()
setSuperParameters
public void setSuperParameters(Set superParameters)
signature
public String signature()
Copyright © 2006-2012 Codehaus. All Rights Reserved.