public class DecoderHelper
extends java.lang.Object
Constructor and Description |
---|
DecoderHelper() |
Modifier and Type | Method and Description |
---|---|
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. |
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 ClasspathFinderJonathanException
- 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
- ...signatureJonathanException
- 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 parametersJonathanException
- 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 parameterdJonathanException
- if something goes wrong.public static boolean isArrayClassName(java.lang.String _type)
_type
given is an array class name._type
- the type to be testedpublic static java.lang.String getClassNameForArray(java.lang.String _array)
_array
given._array
- the array to be studied