org.inxar.jenesis
Interface Constructor

All Superinterfaces:
Access, Block, Codeable, Declaration, InitializationDeclaration

public interface Constructor
extends Access, InitializationDeclaration

Declaration subinterface for a class constructor.


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 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.Access
getAccess, setAccess
 
Methods inherited from interface org.inxar.jenesis.Declaration
javadoc
 
Methods inherited from interface org.inxar.jenesis.Codeable
getComment, setComment, toCode, vm
 
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
 

Method Detail

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.