Package | Description |
---|---|
jmplib | |
jmplib.reflect | |
jmplib.util.intercessor |
Modifier and Type | Method and Description |
---|---|
void |
TransactionalIntercessor.addAnnotation(Method method,
java.lang.reflect.Type... annotationObjects) |
void |
SimpleIntercessor.addAnnotation(Method met,
java.lang.reflect.Type... annotations) |
void |
IIntercessor.addAnnotation(Method met,
java.lang.reflect.Type... annotations) |
void |
TransactionalIntercessor.addGenericType(Method method,
TypeVariable<?>... types) |
void |
SimpleIntercessor.addGenericType(Method met,
TypeVariable<?>... types) |
void |
IIntercessor.addGenericType(Method met,
TypeVariable<?>... types) |
void |
TransactionalIntercessor.addMethod(java.lang.reflect.Type clazz,
Method... methods) |
void |
SimpleIntercessor.addMethod(java.lang.reflect.Type clazz,
Method... methods) |
void |
IIntercessor.addMethod(java.lang.reflect.Type clazz,
Method... methods) |
void |
TransactionalIntercessor.implementInterface(java.lang.reflect.Type clazz,
java.lang.reflect.Type interf,
Method[] methods,
java.lang.Class<?>... typeParameters) |
void |
SimpleIntercessor.implementInterface(java.lang.reflect.Type clazz,
java.lang.reflect.Type interf,
Method[] methods,
java.lang.Class<?>... typeParameters) |
void |
IIntercessor.implementInterface(java.lang.reflect.Type clazz,
java.lang.reflect.Type interf,
Method[] methods,
java.lang.Class<?>... typeParameters) |
void |
TransactionalIntercessor.removeMethod(java.lang.reflect.Type clazz,
Method... methods) |
void |
SimpleIntercessor.removeMethod(java.lang.reflect.Type clazz,
Method... methods) |
void |
IIntercessor.removeMethod(java.lang.reflect.Type clazz,
Method... methods) |
void |
TransactionalIntercessor.replaceImplementation(java.lang.reflect.Type clazz,
Method... methods) |
void |
SimpleIntercessor.replaceImplementation(java.lang.reflect.Type clazz,
Method... methods) |
void |
IIntercessor.replaceImplementation(java.lang.reflect.Type clazz,
Method... methods) |
void |
TransactionalIntercessor.replaceMethod(java.lang.reflect.Type clazz,
Method method,
Method newMethod) |
void |
SimpleIntercessor.replaceMethod(java.lang.reflect.Type clazz,
Method method,
Method newMethod) |
void |
IIntercessor.replaceMethod(java.lang.reflect.Type clazz,
Method method,
Method newMethod) |
void |
TransactionalIntercessor.setAnnotation(Method method,
java.lang.reflect.Type... annotationObjects) |
void |
SimpleIntercessor.setAnnotation(Method met,
java.lang.reflect.Type... annotations) |
void |
IIntercessor.setAnnotation(Method met,
java.lang.reflect.Type... annotations) |
void |
TransactionalIntercessor.setGenericType(Method method,
TypeVariable<?>... types) |
void |
SimpleIntercessor.setGenericType(Method met,
TypeVariable<?>... types) |
void |
IIntercessor.setGenericType(Method met,
TypeVariable<?>... types) |
Modifier and Type | Method and Description |
---|---|
void |
TransactionalIntercessor.replaceMethod(java.lang.reflect.Type clazz,
java.util.Map<Method,Method> methods)
Replaces a series of methods from the specified class
For example, modifying the method to acept a more generic type (Dog ->
Animal):
// Creating MethodType
MethodType newType = MethodType.methodType(void.class, Pet.class);
// Modifying the method
Intercessor.replaceMethod(Owner.class, new jmplib.reflect.Method("addPet", newType,
"this.pet = dog;"));
|
void |
TransactionalIntercessor.replaceMethod(java.lang.reflect.Type clazz,
java.util.Map<Method,Method> methods)
Replaces a series of methods from the specified class
For example, modifying the method to acept a more generic type (Dog ->
Animal):
// Creating MethodType
MethodType newType = MethodType.methodType(void.class, Pet.class);
// Modifying the method
Intercessor.replaceMethod(Owner.class, new jmplib.reflect.Method("addPet", newType,
"this.pet = dog;"));
|
void |
SimpleIntercessor.replaceMethod(java.lang.reflect.Type clazz,
java.util.Map<Method,Method> methods)
Replaces a series of methods from the specified class
For example, modifying the method to acept a more generic type (Dog ->
Animal):
// Creating MethodType
MethodType newType = MethodType.methodType(void.class, Pet.class);
// Modifying the method
Intercessor.replaceMethod(Owner.class, new jmplib.reflect.Method("addPet", newType,
"this.pet = dog;"));
|
void |
SimpleIntercessor.replaceMethod(java.lang.reflect.Type clazz,
java.util.Map<Method,Method> methods)
Replaces a series of methods from the specified class
For example, modifying the method to acept a more generic type (Dog ->
Animal):
// Creating MethodType
MethodType newType = MethodType.methodType(void.class, Pet.class);
// Modifying the method
Intercessor.replaceMethod(Owner.class, new jmplib.reflect.Method("addPet", newType,
"this.pet = dog;"));
|
void |
IIntercessor.replaceMethod(java.lang.reflect.Type clazz,
java.util.Map<Method,Method> methods)
Replaces a series of methods from the specified class
For example, modifying the method to acept a more generic type (Dog ->
Animal):
// Creating MethodType
MethodType newType = MethodType.methodType(void.class, Pet.class);
// Modifying the method
Intercessor.replaceMethod(Owner.class, new jmplib.reflect.Method("addPet", newType,
"this.pet = dog;"));
|
void |
IIntercessor.replaceMethod(java.lang.reflect.Type clazz,
java.util.Map<Method,Method> methods)
Replaces a series of methods from the specified class
For example, modifying the method to acept a more generic type (Dog ->
Animal):
// Creating MethodType
MethodType newType = MethodType.methodType(void.class, Pet.class);
// Modifying the method
Intercessor.replaceMethod(Owner.class, new jmplib.reflect.Method("addPet", newType,
"this.pet = dog;"));
|
Modifier and Type | Method and Description |
---|---|
static Method |
Introspector.decorateMethod(java.lang.reflect.Method method)
Puts a decorator to a java.lang.reflect.Method instance
|
static Method[] |
IntrospectionUtils.decorateMethodList(java.lang.reflect.Method[] methodList)
Decorates a list of java.lang.reflect.Method objects.
|
static Method[] |
Introspector.decorateMethods(java.lang.reflect.Method[] methods)
Puts a decorator to a java.lang.reflect.Method array
|
static Method[] |
IntrospectionUtils.filterJMPLibMethods(Method[] methods)
Removes from the passed method list those methods that are added by JMPLib,
to avoid reflection users to see the inner workings of our library.
|
Method |
Class.getDeclaredMethod(java.lang.String name,
java.lang.Class<?>... parameterTypes)
Returns a
Method object that reflects the specified
declared method of the class or interface represented by this
Class object. |
Method[] |
Class.getDeclaredMethods()
Returns an array containing
Method objects reflecting all the
declared methods of the class or interface represented by this <p>
Class object, including public, protected, default (package)
access, and private methods, but excluding inherited methods. |
Method |
Class.getEnclosingMethod()
If this
Class object represents a local or anonymous
class within a method, returns a java.lang.reflect.Method Method object representing the immediately enclosing method of the underlying class. |
Method |
Class.getMethod(java.lang.String name,
java.lang.Class<?>... parameterTypes)
Returns a
Method object that reflects the specified public
member method of the class or interface represented by this
Class object. |
Method[] |
Class.getMethods()
Returns an array containing
Method objects reflecting all the
public methods of the class or interface represented by this <p>
Class object, including those declared by the class or interface and
those inherited from superclasses and superinterfaces. |
Method[] |
Class.getMethods(java.lang.String regexp)
Get all the methods whose name matches a regular expression
|
Modifier and Type | Method and Description |
---|---|
static Method[] |
IntrospectionUtils.filterJMPLibMethods(Method[] methods)
Removes from the passed method list those methods that are added by JMPLib,
to avoid reflection users to see the inner workings of our library.
|
static boolean |
IntrospectionUtils.isJmpLibAddedMethod(Method m)
Determines if this method is a method added by JMPLib
|
static boolean |
IntrospectionUtils.isJmpLibInvokerOrCreator(Method m,
Method[] methodList)
Tests if a method is a JMPLib invoker or creator
|
static boolean |
IntrospectionUtils.isJmpLibInvokerOrCreator(Method m,
Method[] methodList)
Tests if a method is a JMPLib invoker or creator
|
static boolean |
IntrospectionUtils.isJmpLibMethod(Method m,
java.lang.reflect.Method[] methodList) |
static boolean |
IntrospectionUtils.isJmpLibMethod(Method m,
Method[] methodList) |
static boolean |
IntrospectionUtils.isJmpLibMethod(Method m,
Method[] methodList) |
Modifier and Type | Method and Description |
---|---|
static Method |
IntercessorTypeConversion.accesibleObject2Method(java.lang.reflect.AccessibleObject t)
Converts from an AccessibleObject to a jmplib.reflectMethod
|