org.inxar.jenesis
Interface Constructor
- All Superinterfaces:
- Access, Block, Codeable, Declaration, InitializationDeclaration
- public interface Constructor
- extends Access, InitializationDeclaration
Declaration
subinterface for a class constructor.
Method Summary |
FormalParameter |
addParameter(Type type,
java.lang.String name)
Adds a new formal parameter to the list of parameters with the given Type and
name, andm returns the FormalParameter object. |
void |
addThrows(java.lang.String type)
Adds this string to the list of throws. |
Iterator |
getParameters()
Gets the list of formal parameters as an iterator of FormalParameter . |
Iterator |
getThrows()
Gets the list of throws clauses as an iterator of String . |
Methods inherited from interface org.inxar.jenesis.Block |
getStatements, newBreak, newContinue, newDoWhile, newEmpty, newFor, newIf, newLet, newLocalBlock, newLocalClass, newReturn, newStmt, newSwitch, newSynchronized, newThrow, newTry, newWhile |
getParameters
public Iterator getParameters()
- Gets the list of formal parameters as an iterator of
FormalParameter
.
addParameter
public FormalParameter addParameter(Type type,
java.lang.String name)
- Adds a new formal parameter to the list of parameters with the given
Type
and
name, andm returns the FormalParameter
object.
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.