Package | Description |
---|---|
jmplib | |
jmplib.reflect | |
jmplib.util.intercessor |
Modifier and Type | Method and Description |
---|---|
Class<?> |
TransactionalIntercessor.createClassClone(java.lang.String packageName,
java.lang.String className,
java.lang.reflect.Type origin)
Creates a class clone of the specified class with the specified name and
belonging to the provided package
|
Class<?> |
SimpleIntercessor.createClassClone(java.lang.String packageName,
java.lang.String className,
java.lang.reflect.Type origin)
Creates a class clone of the specified class with the specified name and
belonging to the provided package
|
Class<?> |
IIntercessor.createClassClone(java.lang.String packageName,
java.lang.String className,
java.lang.reflect.Type origin)
Creates a class clone of the specified class with the specified name and
belonging to the provided package
|
Modifier and Type | Method and Description |
---|---|
void |
TransactionalIntercessor.addImport(java.lang.reflect.Type clazz,
Class<?>... importObjects) |
void |
SimpleIntercessor.addImport(java.lang.reflect.Type clazz,
Class<?>... importObjects) |
void |
IIntercessor.addImport(java.lang.reflect.Type clazz,
Class<?>... imports) |
Modifier and Type | Method and Description |
---|---|
<U> Class<? extends U> |
Class.asSubclass(Class<U> clazz) |
static Class<?> |
Introspector.decorateClass(java.lang.Class clazz)
Puts a decorator to a java.lang.Class instance
|
static Class<?>[] |
IntrospectionUtils.decorateClassList(java.lang.Class<?>[] classList)
Decorates a list of java.lang.Class objects.
|
static Class[] |
IntrospectionUtils.filterJMPLibInterfaces(Class[] interfs)
Removes from the passed annotation list those ones that are added by JMPLib,
to avoid reflection users to see the inner workings of our library.
|
static Class<?> |
Class.forName(java.lang.String className)
Returns the
Class object associated with the class or
interface with the given string name. |
static Class<?> |
Class.forName(java.lang.String name,
boolean initialize,
java.lang.ClassLoader loader)
Returns the
Class object associated with the class or
interface with the given string name, using the given class loader. |
static Class<?> |
Introspector.getClass(java.lang.Object obj)
Obtain a class decorator of the class of the passed object.
|
Class<?>[] |
Class.getClasses()
Returns an array containing
Class objects representing all
the public classes and interfaces that are members of the class
represented by this Class object. |
Class<?> |
Class.getComponentType()
Returns the
Class representing the component type of an
array. |
Class<?>[] |
Class.getDeclaredClasses()
Returns an array of
Class objects reflecting all the
classes and interfaces declared as members of the class represented by
this Class object. |
Class<?> |
Class.getDeclaringClass()
If the class or interface represented by this
Class object
is a member of another class, returns the Class object
representing the class in which it was declared. |
Class<?> |
Class.getEnclosingClass()
Returns the immediately enclosing class of the underlying
class.
|
Class<?>[] |
Class.getInterfaces()
Determines the interfaces implemented by the class or interface
represented by this object.
|
Class<? super T> |
Class.getSuperclass()
Returns the
Class representing the superclass of the entity
(class, interface, primitive type or void) represented by this
Class . |
Modifier and Type | Method and Description |
---|---|
<U> Class<? extends U> |
Class.asSubclass(Class<U> clazz) |
static Class[] |
IntrospectionUtils.filterJMPLibInterfaces(Class[] interfs)
Removes from the passed annotation list those ones that are added by JMPLib,
to avoid reflection users to see the inner workings of our library.
|
<A extends java.lang.annotation.Annotation> |
Class.getAnnotation(Class<A> annotationClass) |
<A extends java.lang.annotation.Annotation> |
Class.getAnnotationsByType(Class<A> annotationClass) |
Constructor<?> |
Class.getConstructor(Class<?>... parameterTypes) |
<A extends java.lang.annotation.Annotation> |
Class.getDeclaredAnnotation(Class<A> annotationClass) |
<A extends java.lang.annotation.Annotation> |
Class.getDeclaredAnnotationsByType(Class<A> annotationClass) |
Constructor<T> |
Class.getDeclaredConstructor(Class<?>... parameterTypes) |
boolean |
Class.isAnnotationPresent(Class<? extends java.lang.annotation.Annotation> annotationClass) |
boolean |
Class.isAssignableFrom(Class<?> cls) |
static boolean |
IntrospectionUtils.isJmpLibAddedInterface(Class<?> c)
Determines if this method is a method added by JMPLib
|
static java.lang.Class<?>[] |
IntrospectionUtils.undecorateClassList(Class<?>[] classList)
Eliminates the decorator of list of jmplib.reflect.Class objects.
|
Constructor and Description |
---|
Method(java.lang.reflect.Type clazz,
java.lang.String name,
java.lang.invoke.MethodType methodType,
java.lang.String body,
int modifiers,
Class<?>[] exceptions,
java.lang.reflect.Type[] typeParameters,
java.lang.reflect.Type genericReturnType,
TypeVariable<?>[] methodTypeParameters,
java.lang.String... parameterNames) |
Modifier and Type | Method and Description |
---|---|
static Class<?> |
IntercessorTypeConversion.type2Class(java.lang.reflect.Type t)
Converts from a Type to a jmplib.reflect.Class
|