public class ConstructorInstance_c extends ProcedureInstance_c implements ConstructorInstance
ConstructorInstance
contains type information for a
constructor.Modifier and Type | Field and Description |
---|---|
protected ConstructorInstance |
decl |
container, flags, formalTypes, throwTypes
position, ts
Modifier | Constructor and Description |
---|---|
protected |
ConstructorInstance_c()
Used for deserializing types.
|
|
ConstructorInstance_c(TypeSystem ts,
Position pos,
ClassType container,
Flags flags,
java.util.List<? extends Type> formalTypes,
java.util.List<? extends Type> excTypes) |
Modifier and Type | Method and Description |
---|---|
ConstructorInstance |
container(ClassType container) |
Declaration |
declaration()
Get the original declaration.
|
java.lang.String |
designator()
String describing the kind of procedure, (e.g., "method" or "constructor").
|
boolean |
equalsImpl(TypeObject o)
Default implementation is pointer equality.
|
ConstructorInstance |
flags(Flags flags)
Non-destructive updates.
|
ConstructorInstance |
formalTypes(java.util.List<? extends Type> l) |
boolean |
isCanonical()
Return true if the type object contains no unknown/ambiguous types.
|
ConstructorInstance |
orig() |
void |
setDeclaration(Declaration decl)
Set the original declaration.
|
java.lang.String |
signature()
Returns a String representing the signature of the procedure.
|
ConstructorInstance |
throwTypes(java.util.List<? extends Type> l) |
java.lang.String |
toString() |
callValid, callValidImpl, container, flags, formalTypes, hasFormals, hasFormalsImpl, hashCode, listIsCanonical, moreSpecific, moreSpecificImpl, setContainer, setFlags, setFormalTypes, setThrowTypes, throwsSubset, throwsSubsetImpl, throwTypes
copy, equals, position, typeSystem
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
callValid, callValidImpl, formalTypes, hasFormals, hasFormalsImpl, moreSpecific, moreSpecificImpl, setFormalTypes, setThrowTypes, throwsSubset, throwsSubsetImpl, throwTypes
flags
position, typeSystem
container, flags, setContainer, setFlags
protected ConstructorInstance decl
protected ConstructorInstance_c()
public Declaration declaration()
Declaration
declaration
in interface Declaration
public void setDeclaration(Declaration decl)
Declaration
setDeclaration
in interface Declaration
public ConstructorInstance orig()
orig
in interface ConstructorInstance
public ConstructorInstance flags(Flags flags)
ConstructorInstance
flags
in interface ConstructorInstance
public ConstructorInstance formalTypes(java.util.List<? extends Type> l)
formalTypes
in interface ConstructorInstance
public ConstructorInstance throwTypes(java.util.List<? extends Type> l)
throwTypes
in interface ConstructorInstance
public ConstructorInstance container(ClassType container)
container
in interface ConstructorInstance
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String signature()
ProcedureInstance
signature
in interface ProcedureInstance
public java.lang.String designator()
ProcedureInstance
designator
in interface ProcedureInstance
public boolean equalsImpl(TypeObject o)
TypeObject_c
equalsImpl
in interface TypeObject
equalsImpl
in class ProcedureInstance_c
TypeObject_c.equalsImpl(TypeObject)
,
Object.hashCode()
public boolean isCanonical()
TypeObject
isCanonical
in interface TypeObject