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.
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. |
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.