org.inxar.jenesis
Interface Method

All Superinterfaces:
Access, Codeable, Declaration, Member
All Known Subinterfaces:
AbstractMethod, ClassMethod

public interface Method
extends Member

Declaration subinterface for methods including abstract and class methods.


Fields inherited from interface org.inxar.jenesis.Access
PACKAGE, PRIVATE, PROTECTED, PUBLIC
 
Method Summary
 FormalParameter addParameter(Type type, java.lang.String name)
          Adds a new FormalParameter to this method signature with the given type and name and returns the Method.
 void addThrows(java.lang.String type)
          Adds this string to the list of throws and returns the Method.
 Iterator getParameters()
          Gets the list of formal parameter declarations as an iterator of FormalParameter.
 Iterator getThrows()
          Gets the list of throws clauses as an iterator of String.
 Type getType()
          Gets the (return) type of this method.
 boolean isAbstract()
          Accessor method for the isAbstract flag.
 void isAbstract(boolean value)
          Mutator method for the isAbstract flag.
 void setType(Type type)
          Sets the (return) type of this method.
 
Methods inherited from interface org.inxar.jenesis.Member
getName, isFinal, isFinal, isStatic, isStatic, setName
 
Methods inherited from interface org.inxar.jenesis.Access
getAccess, setAccess
 
Methods inherited from interface org.inxar.jenesis.Declaration
javadoc
 
Methods inherited from interface org.inxar.jenesis.Codeable
getComment, setComment, toCode, vm
 

Method Detail

getParameters

public Iterator getParameters()
Gets the list of formal parameter declarations as an iterator of FormalParameter.

addParameter

public FormalParameter addParameter(Type type,
                                    java.lang.String name)
Adds a new FormalParameter to this method signature with the given type and name and returns the Method.

getThrows

public Iterator getThrows()
Gets the list of throws clauses as an iterator of String.

addThrows

public void addThrows(java.lang.String type)
Adds this string to the list of throws and returns the Method.

setType

public void setType(Type type)
Sets the (return) type of this method.

getType

public Type getType()
Gets the (return) type of this method.

isAbstract

public boolean isAbstract()
Accessor method for the isAbstract flag.

isAbstract

public void isAbstract(boolean value)
Mutator method for the isAbstract flag.