public interface ProcedureInstance extends CodeInstance
ProcedureInstance
contains the type information for a Java
procedure (either a method or a constructor).Modifier and Type | Method and Description |
---|---|
boolean |
callValid(java.util.List<? extends Type> actualTypes)
Returns true if the procedure can be called with the given argument types.
|
boolean |
callValidImpl(java.util.List<? extends Type> actualTypes)
Returns true if the procedure can be called with the given argument types.
|
java.lang.String |
designator()
String describing the kind of procedure, (e.g., "method" or "constructor").
|
java.util.List<? extends Type> |
formalTypes()
List of formal parameter types.
|
boolean |
hasFormals(java.util.List<? extends Type> arguments)
Returns true if the procedure has the given formal parameter types.
|
boolean |
hasFormalsImpl(java.util.List<? extends Type> arguments)
Returns true if the procedure has the given formal parameter types.
|
boolean |
moreSpecific(ProcedureInstance pi)
Return true if
this is more specific than pi
in terms of method overloading. |
boolean |
moreSpecificImpl(ProcedureInstance pi)
Return true if
this is more specific than pi
in terms of method overloading. |
void |
setFormalTypes(java.util.List<? extends Type> l) |
void |
setThrowTypes(java.util.List<? extends Type> l) |
java.lang.String |
signature()
Returns a String representing the signature of the procedure.
|
boolean |
throwsSubset(ProcedureInstance pi)
Returns true if the procedure throws a subset of the exceptions
thrown by
pi . |
boolean |
throwsSubsetImpl(ProcedureInstance pi)
Returns true if the procedure throws a subset of the exceptions
thrown by
pi . |
java.util.List<? extends Type> |
throwTypes()
List of declared exception types thrown.
|
flags
equalsImpl, isCanonical, position, typeSystem
java.util.List<? extends Type> formalTypes()
Type
.Type
void setFormalTypes(java.util.List<? extends Type> l)
formalTypes
- The formalTypes to set.java.util.List<? extends Type> throwTypes()
Type
.Type
void setThrowTypes(java.util.List<? extends Type> l)
throwTypes
- The throwTypes to set.java.lang.String signature()
java.lang.String designator()
boolean moreSpecific(ProcedureInstance pi)
this
is more specific than pi
in terms of method overloading.boolean hasFormals(java.util.List<? extends Type> arguments)
boolean throwsSubset(ProcedureInstance pi)
pi
.boolean callValid(java.util.List<? extends Type> actualTypes)
boolean moreSpecificImpl(ProcedureInstance pi)
this
is more specific than pi
in terms of method overloading.boolean hasFormalsImpl(java.util.List<? extends Type> arguments)
boolean throwsSubsetImpl(ProcedureInstance pi)
pi
.boolean callValidImpl(java.util.List<? extends Type> actualTypes)