|
JMMF API pre-release v0.6 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--fr.umlv.jmmf.reflect.MultiMethodFactory
Factory class for multi-method implementation.
| Constructor Summary | |
MultiMethodFactory(MultiMethodModel model)
Construct a multi-method factory with a multi-method model. |
|
| Method Summary | |
MultiConstructor |
create(java.lang.Class clazz,
int length)
construct a multi-constructor by taking all constructors with argLength parameter(s) in class clazz. |
MultiMethod |
create(java.lang.Class clazz,
java.lang.String name,
int length)
construct a multi-method by taking all method named name with argLength parameter(s) in class clazz. |
static MultiMethodFactory |
getDefaultFactory()
return the default factory instance. |
MultiMethodModel |
getModel()
return the model of all multi-methods created with this factory. |
MultiMethod[] |
getMultiMethods(java.lang.Class clazz)
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 |
| Constructor Detail |
public MultiMethodFactory(MultiMethodModel model)
model - model of all multi-method created with this factory.| Method Detail |
public MultiMethodModel getModel()
public MultiMethod create(java.lang.Class clazz,
java.lang.String name,
int length)
clazz - class which owns the named methods.name - name of the methods.argLenth - number of parameters.java.lang.IllegalArgumentException - if the class clazz contains
no method named name or all methods found don't have the same
number of parameters.
public MultiConstructor create(java.lang.Class clazz,
int length)
clazz - class which owns the named methods.argLenth - number of parameters.java.lang.IllegalArgumentException - if the class clazz contains
no constructor with argLength parameters.public MultiMethod[] getMultiMethods(java.lang.Class clazz)
clazz - hosted class of all multi-methods.MultiMethodpublic static MultiMethodFactory getDefaultFactory()
|
JMMF API pre-release v0.6 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||