JMMF API
pre-release v0.5

fr.umlv.jmmf.reflect
Class MultiMethodUtilities

java.lang.Object
  |
  +--fr.umlv.jmmf.reflect.MultiMethodUtilities

public final class MultiMethodUtilities
extends java.lang.Object

Support class for multi-method implementation.

Version:
0.5.5
Author:
Remi Forax

Method Summary
static MultiMethod[] getMultiMethods(java.lang.Class clazz)
          return all the multi-methods contains in the class.
static MultiMethod[] getMultiMethods(java.lang.Class clazz, boolean onlyPublic)
          return all the multi-methods contains in the class.
static MultiMethod[] getMultiMethods(java.lang.Class clazz, boolean onlyPublic, InvocationModel model)
          return all the multi-methods contains in the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMultiMethods

public static MultiMethod[] getMultiMethods(java.lang.Class clazz)
return all the multi-methods contains in the class.
class Sum
{
  public int sum(A a) {...}
  public int sum(B b) {...}
}
See Also:
MultiMethod

getMultiMethods

public static MultiMethod[] getMultiMethods(java.lang.Class clazz,
                                            boolean onlyPublic)
return all the multi-methods contains in the class.
Parameters:
onlyPublic - if this flag is true only PUBLIC method are transformed into multi-method.
See Also:
MultiMethod

getMultiMethods

public static MultiMethod[] getMultiMethods(java.lang.Class clazz,
                                            boolean onlyPublic,
                                            InvocationModel model)
return all the multi-methods contains in the class.
Parameters:
onlyPublic - if this flag is true only PUBLIC method are transformed into multi-method.
See Also:
MultiMethod

JMMF API
pre-release v0.5

Rémi Forax 1999,2000 Université de Marne la Vallée