|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jonathan.libs.kernel.decoders.DecoderHelper
Helper class providing methods used by JImpicitFactory, KAtom and KAssemblage.
| Constructor Summary | |
DecoderHelper()
|
|
| Method Summary | |
static java.lang.Object |
apply(java.lang.reflect.Constructor _constructor,
java.util.List _arguments,
Context _context,
Instanciable _instance)
"applies" the _context Context's elements on the implementation alternative whose signature is _constructor(_arguments), i.e. |
static java.lang.Object |
apply(java.lang.Object _object,
java.lang.reflect.Method _method,
java.util.List _arguments,
Context _context,
Instanciable _instance)
"applies" the _context Context's elements on the specified method whose signature is _method(_arguments), i.e. |
static java.lang.String |
getClassNameForArray(java.lang.String _array)
Return the class name corresponding to the _array given. |
static java.lang.reflect.Constructor |
getConstructor(java.lang.String _classe,
java.util.List _arguments,
Component _context)
Returns the _classe java class's Constructor whose arguments'types
are listed in _arguments as JArguments. |
static java.lang.reflect.Method |
getMethod(java.lang.Class _class,
java.lang.String _name,
java.util.List _arguments,
Component _context)
Returns the _classe java class's Method whose name is _name
and arguments'types are listed in _arguments as JArguments. |
static boolean |
isArrayClassName(java.lang.String _type)
Test if the _type given is an array class name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DecoderHelper()
| Method Detail |
public static java.lang.reflect.Method getMethod(java.lang.Class _class,
java.lang.String _name,
java.util.List _arguments,
Component _context)
throws JonathanException
_classe java class's Method whose name is _name
and arguments'types are listed in _arguments as JArguments.
To reach this goal, this method first tries to find and load each of
_arguments' java classes
with the ClasspathFinder found at "/classpath_finder" (in the
_context context).
_class - the belonging class of the method_name - the name of the method_arguments - the parameters of the method_context - the context in which find the ClasspathFinder
JonathanException - if something goes wrong.
public static java.lang.reflect.Constructor getConstructor(java.lang.String _classe,
java.util.List _arguments,
Component _context)
throws JonathanException
_classe java class's Constructor whose arguments'types
are listed in _arguments as JArguments. To reach this goal, this
method first tries to find and load _classe and each of
arguments' java classes with the ClasspathFinder found at
"/classpath_finder" (in the
_context context).
_classe - the class's..._arguments - ...signature
JonathanException - if something goes wrong.
public static java.lang.Object apply(java.lang.Object _object,
java.lang.reflect.Method _method,
java.util.List _arguments,
Context _context,
Instanciable _instance)
throws JonathanException
_object - the object calling method_method - method to call_arguments - its arguments_context - contains the instanciation parameters
JonathanException - if something goes wrong.
public static java.lang.Object apply(java.lang.reflect.Constructor _constructor,
java.util.List _arguments,
Context _context,
Instanciable _instance)
throws JonathanException
_constructor - constructor to call_arguments - its arguments_context - contains the instanciation parameterd
JonathanException - if something goes wrong.public static boolean isArrayClassName(java.lang.String _type)
_type given is an array class name.
_type - the type to be tested
public static java.lang.String getClassNameForArray(java.lang.String _array)
_array given.
_array - the array to be studied
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||