polyglot.types
Interface FunctionInstance

All Superinterfaces:
java.lang.Cloneable, CodeInstance, Copy, ProcedureInstance, java.io.Serializable, TypeObject
All Known Subinterfaces:
MethodInstance
All Known Implementing Classes:
MethodInstance_c

public interface FunctionInstance
extends ProcedureInstance

A FunctionInstance represents the type information for a function.


Method Summary
 Type returnType()
          The functions's return type.
 void setReturnType(Type type)
          Destructively set the functions's return type.
 
Methods inherited from interface polyglot.types.ProcedureInstance
callValid, callValidImpl, designator, formalTypes, hasFormals, hasFormalsImpl, moreSpecific, moreSpecificImpl, setFormalTypes, setThrowTypes, signature, throwsSubset, throwsSubsetImpl, throwTypes
 
Methods inherited from interface polyglot.types.CodeInstance
flags
 
Methods inherited from interface polyglot.types.TypeObject
equalsImpl, isCanonical, position, typeSystem
 
Methods inherited from interface polyglot.util.Copy
copy
 

Method Detail

returnType

Type returnType()
The functions's return type.


setReturnType

void setReturnType(Type type)
Destructively set the functions's return type.

Parameters:
type -