org.codehaus.gmaven.runtime.support.stubgen.model
Class MethodDef

java.lang.Object
  extended by org.codehaus.gmaven.runtime.support.stubgen.model.Element
      extended by org.codehaus.gmaven.runtime.support.stubgen.model.NamedElement
          extended by org.codehaus.gmaven.runtime.support.stubgen.model.Entity
              extended by 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.
 
Constructor Summary
  MethodDef()
           
protected MethodDef(MethodDef.Type type)
           
 
Method Summary
 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()
           
 
Methods inherited from class org.codehaus.gmaven.runtime.support.stubgen.model.Entity
getJavaDoc, getModifiers, setJavaDoc, setJavaDoc
 
Methods inherited from class org.codehaus.gmaven.runtime.support.stubgen.model.NamedElement
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodDef

public MethodDef()

MethodDef

protected MethodDef(MethodDef.Type type)
Method Detail

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.