JMMF API
pre-release v0.6

fr.umlv.jmmf.reflect
Class DefaultMultiMethodModel

java.lang.Object
  |
  +--fr.umlv.jmmf.reflect.DefaultMultiMethodModel
All Implemented Interfaces:
MultiMethodModel

public class DefaultMultiMethodModel
extends java.lang.Object
implements MultiMethodModel

default multi-method model.

Version:
0.5.9
Author:
Remi Forax

Field Summary
protected  MultiMethodHook hook
           
protected  TypeModel typeModel
           
 
Constructor Summary
DefaultMultiMethodModel()
           
DefaultMultiMethodModel(MultiMethodHook hook)
           
DefaultMultiMethodModel(TypeModel typeModel, MultiMethodHook hook)
           
 
Method Summary
 java.lang.Class[] getExceptionTypes(java.lang.reflect.Method[] methods)
          process exceptions of the multi-method with the exceptions of all the contained methods.
 MultiMethodHook getHook()
          return the hook.
 int getModifiers(java.lang.reflect.Method[] methods)
          Process modifiers of the multi-method with the modifiers of all the contained methods.
 java.lang.Class[] getParameterTypes(java.lang.reflect.Method[] methods)
          process parameter types of the multi-method with the parameter types of all the contained methods.
 java.lang.Class getReturnType(java.lang.reflect.Method[] methods)
          process return type of the multi-method with the return type of all the contained methods.
 TypeModel getTypeModel()
          return the type model.
 void setHook(MultiMethodHook hook)
          set the hook for the multi-methods created with this model.
 void setTypeModel(TypeModel typeModel)
          set the type model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hook

protected MultiMethodHook hook

typeModel

protected TypeModel typeModel
Constructor Detail

DefaultMultiMethodModel

public DefaultMultiMethodModel(TypeModel typeModel,
                               MultiMethodHook hook)

DefaultMultiMethodModel

public DefaultMultiMethodModel(MultiMethodHook hook)

DefaultMultiMethodModel

public DefaultMultiMethodModel()
Method Detail

getTypeModel

public TypeModel getTypeModel()
return the type model.
Specified by:
getTypeModel in interface MultiMethodModel

setTypeModel

public void setTypeModel(TypeModel typeModel)
set the type model.

getHook

public MultiMethodHook getHook()
return the hook.
Specified by:
getHook in interface MultiMethodModel

setHook

public void setHook(MultiMethodHook hook)
set the hook for the multi-methods created with this model.

getModifiers

public int getModifiers(java.lang.reflect.Method[] methods)
Process modifiers of the multi-method with the modifiers of all the contained methods. The visibility modifier is the less visible of all visibility modifiers. [PRIVATE< NONE< PROTECTED< PUBLIC] If one of the methods is not STATIC, the multi-method isn't STATIC. If one of the methods is not ABSTRACT, the multi-method isn't ABSTRACT. If one of the methods is not STRICT FP, the multi-method isn't STRICT FP. If one of the methods is not STATIC, the multi-method isn't STATIC.
Specified by:
getModifiers in interface MultiMethodModel

getExceptionTypes

public java.lang.Class[] getExceptionTypes(java.lang.reflect.Method[] methods)
process exceptions of the multi-method with the exceptions of all the contained methods.
Specified by:
getExceptionTypes in interface MultiMethodModel

getReturnType

public java.lang.Class getReturnType(java.lang.reflect.Method[] methods)
process return type of the multi-method with the return type of all the contained methods.
Specified by:
getReturnType in interface MultiMethodModel

getParameterTypes

public java.lang.Class[] getParameterTypes(java.lang.reflect.Method[] methods)
process parameter types of the multi-method with the parameter types of all the contained methods.
Specified by:
getParameterTypes in interface MultiMethodModel

JMMF API
pre-release v0.6

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