|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpolyglot.ext.jl.types.TypeObject_c
polyglot.ext.jl.types.ProcedureInstance_c
polyglot.ext.jl.types.ConstructorInstance_c
public class ConstructorInstance_c
A ConstructorInstance contains type information for a
constructor.
| Field Summary |
|---|
| Fields inherited from class polyglot.ext.jl.types.ProcedureInstance_c |
|---|
container, excTypes, flags, formalTypes |
| Fields inherited from class polyglot.ext.jl.types.TypeObject_c |
|---|
position, ts |
| Constructor Summary | |
|---|---|
protected |
ConstructorInstance_c()
Used for deserializing types. |
|
ConstructorInstance_c(TypeSystem ts,
Position pos,
ClassType container,
Flags flags,
java.util.List formalTypes,
java.util.List excTypes)
|
| Method Summary | |
|---|---|
ConstructorInstance |
container(ClassType container)
Set the containing class of the constructor. |
java.lang.String |
designator()
Returns either "method" or "constructor". |
boolean |
equalsImpl(TypeObject o)
Default implementation is pointer equality. |
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. |
boolean |
isCanonical()
Return true if the type object contains no unknown/ambiguous types. |
java.lang.String |
signature()
Returns a String representing the signature of the procedure. |
ConstructorInstance |
throwTypes(java.util.List l)
Set the types of the exceptions thrown by the constructor. |
java.lang.String |
toString()
|
| Methods inherited from class polyglot.ext.jl.types.ProcedureInstance_c |
|---|
callValid, callValidImpl, container, flags, formalTypes, hasFormals, hasFormalsImpl, hashCode, listIsCanonical, moreSpecific, moreSpecificImpl, throwsSubset, throwsSubsetImpl, throwTypes |
| Methods inherited from class polyglot.ext.jl.types.TypeObject_c |
|---|
copy, equals, position, typeSystem |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface polyglot.types.ProcedureInstance |
|---|
callValid, callValidImpl, formalTypes, hasFormals, hasFormalsImpl, moreSpecific, moreSpecificImpl, throwsSubset, throwsSubsetImpl, throwTypes |
| Methods inherited from interface polyglot.types.MemberInstance |
|---|
container, flags |
| Methods inherited from interface polyglot.types.TypeObject |
|---|
position, typeSystem |
| Methods inherited from interface polyglot.util.Copy |
|---|
copy |
| Constructor Detail |
|---|
protected ConstructorInstance_c()
public ConstructorInstance_c(TypeSystem ts,
Position pos,
ClassType container,
Flags flags,
java.util.List formalTypes,
java.util.List excTypes)
| Method Detail |
|---|
public ConstructorInstance flags(Flags flags)
ConstructorInstance
flags in interface ConstructorInstancepublic ConstructorInstance formalTypes(java.util.List l)
ConstructorInstance
formalTypes in interface ConstructorInstancel - A list of Type.Typepublic ConstructorInstance throwTypes(java.util.List l)
ConstructorInstance
throwTypes in interface ConstructorInstancel - A list of Type.Typepublic ConstructorInstance container(ClassType container)
ConstructorInstance
container in interface ConstructorInstancepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String signature()
ProcedureInstance
signature in interface ProcedureInstancepublic java.lang.String designator()
ProcedureInstance
designator in interface ProcedureInstancepublic boolean equalsImpl(TypeObject o)
TypeObject_c
equalsImpl in interface TypeObjectequalsImpl in class ProcedureInstance_cTypeObject_c.equalsImpl(TypeObject),
Object.hashCode()public boolean isCanonical()
TypeObject
isCanonical in interface TypeObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||