1 package polyglot.types; 2 3 import java.util.List; 4 5 /** 6 * A <code>ConstructorInstance</code> contains type information for a 7 * constructor. 8 */ 9 public interface ConstructorInstance extends ProcedureInstance 10 { 11 /** 12 * Set the flags of the constructor. 13 */ 14 ConstructorInstance flags(Flags flags); 15 16 /** 17 * Set the types of the formal parameters of the constructor. 18 * @param l A list of <code>Type</code>. 19 * @see polyglot.types.Type 20 */ 21 ConstructorInstance formalTypes(List l); 22 23 /** 24 * Set the types of the exceptions thrown by the constructor. 25 * @param l A list of <code>Type</code>. 26 * @see polyglot.types.Type 27 */ 28 ConstructorInstance throwTypes(List l); 29 30 /** 31 * Set the containing class of the constructor. 32 */ 33 ConstructorInstance container(ClassType container); 34 } 35