polyglot.types
Interface ConstructorInstance

All Superinterfaces:
java.lang.Cloneable, CodeInstance, Copy, MemberInstance, ProcedureInstance, java.io.Serializable, TypeObject
All Known Subinterfaces:
CofferConstructorInstance
All Known Implementing Classes:
CofferConstructorInstance_c, ConstructorInstance_c

public interface ConstructorInstance
extends ProcedureInstance

A ConstructorInstance contains type information for a constructor.


Method Summary
 ConstructorInstance container(ClassType container)
          Set the containing class of the constructor.
 ConstructorInstance flags(Flags flags)
          Set the flags of the constructor.
 ConstructorInstance formalTypes(java.util.List l)
          Set the types of the formal parameters of the constructor.
 ConstructorInstance throwTypes(java.util.List l)
          Set the types of the exceptions thrown by the constructor.
 
Methods inherited from interface polyglot.types.ProcedureInstance
callValid, callValidImpl, designator, formalTypes, hasFormals, hasFormalsImpl, moreSpecific, moreSpecificImpl, signature, throwsSubset, throwsSubsetImpl, throwTypes
 
Methods inherited from interface polyglot.types.MemberInstance
container, flags
 
Methods inherited from interface polyglot.types.TypeObject
equalsImpl, isCanonical, position, typeSystem
 
Methods inherited from interface polyglot.util.Copy
copy
 

Method Detail

flags

ConstructorInstance flags(Flags flags)
Set the flags of the constructor.


formalTypes

ConstructorInstance formalTypes(java.util.List l)
Set the types of the formal parameters of the constructor.

Parameters:
l - A list of Type.
See Also:
Type

throwTypes

ConstructorInstance throwTypes(java.util.List l)
Set the types of the exceptions thrown by the constructor.

Parameters:
l - A list of Type.
See Also:
Type

container

ConstructorInstance container(ClassType container)
Set the containing class of the constructor.