|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectovm.polyd.policy.Dispatching
ovm.polyd.policy.MultiDisp
public class MultiDisp
This class implements multidispatching, as a PolyD dispatching policy. All possible ambiguities are detected, most of them at dispatcher-building time, and the rest dynamically.
Nested Class Summary | |
---|---|
static class |
MultiDisp.MultiDispException
Thrown by MultiDisp if an error condition is detected. |
Method Summary | |
---|---|
int |
bestMatch(java.lang.Class[] args,
java.lang.reflect.Method[] meth)
Dynamically selects the most appropriate method for a certain combination of arguments. |
java.lang.reflect.Method[] |
compatibleSet(java.lang.Class[] args,
java.lang.reflect.Method[] meth)
Performs a static preselection on a set of methods, and/or a consistency check. |
static Dispatching |
theDispatcher()
Returns an instance of this dispatching policy. |
java.lang.String |
toString()
Returns the name of this dispatcher |
Methods inherited from class ovm.polyd.policy.Dispatching |
---|
bestMatch, compatibleSet, disableCaching, handleMissing, handleMissing, remapNull, remapNull |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static Dispatching theDispatcher()
public java.lang.reflect.Method[] compatibleSet(java.lang.Class[] args, java.lang.reflect.Method[] meth)
Dispatching
compatibleSet
in class Dispatching
args
- the array of classes of non-raw argumentsmeth
- the array of methods that will be used for the selection
meth
Dispatching.compatibleSet(Class[], Method[], Class[], Method, String)
public int bestMatch(java.lang.Class[] args, java.lang.reflect.Method[] meth)
Dispatching
bestMatch
in class Dispatching
args
- the array of classes of non-raw argumentsmeth
- the array of methods involved in the selection
meth
array, or -1 if none can be chosen.Dispatching.bestMatch(Class[], Method[], Object[], Class[], Method, String)
public java.lang.String toString()
Dispatching
toString
in class Dispatching
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |