jaxx.compiler.reflect
Class ClassDescriptorHelper
java.lang.Object
jaxx.compiler.reflect.ClassDescriptorHelper
public class ClassDescriptorHelper
- extends Object
Mirrors the class java.lang.ClassLoader. JAXX uses ClassDescriptor instead of Class
almost everywhere so that it can handle circular dependencies (there can't be a Class object for an uncompiled
JAXX or Java source file, and a compiler must be allow references to symbols in uncompiled source files in order to handle
circular dependencies).
Note : Was previously ClassDescriptorLoader.
- Since:
- 2.0.2
- Author:
- tchemit
|
Method Summary |
static void |
checkSupportClass(Class<?> handlerClass,
ClassDescriptor beanClass,
Class<?>... tagClasses)
|
static FieldDescriptor |
createFieldDescriptor(Field javaField,
ClassLoader classLoader)
|
static MethodDescriptor |
createMethodDescriptor(Method javaMethod,
ClassLoader classLoader)
|
static Class<?> |
getClass(String className,
ClassLoader classLoader)
|
static ClassDescriptor |
getClassDescriptor(Class<?> javaClass)
|
static ClassDescriptor |
getClassDescriptor(String className)
|
static ClassDescriptor |
getClassDescriptor(String className,
ClassLoader classLoader)
|
protected static ClassDescriptor |
getClassDescriptor0(Class<? extends ClassDescriptorResolver> resolverType,
String className,
URL source,
ClassLoader classLoader)
|
protected static Map<String,ClassDescriptorResolver> |
getDescriptorResolvers()
|
static JAXXObjectDescriptor |
getJAXXObjectDescriptor(Class<?> jaxxClass)
|
static Class<?> |
getPrimitiveBoxedClass(String className)
|
static Class<?> |
getPrimitiveClass(String className)
|
static URL |
getURL(ClassLoader classLoader,
String className,
String clasifier)
|
static void |
reset()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getDescriptorResolvers
protected static Map<String,ClassDescriptorResolver> getDescriptorResolvers()
getClassDescriptor
public static ClassDescriptor getClassDescriptor(String className)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getClassDescriptor
public static ClassDescriptor getClassDescriptor(Class<?> javaClass)
getURL
public static URL getURL(ClassLoader classLoader,
String className,
String clasifier)
getClassDescriptor
public static ClassDescriptor getClassDescriptor(String className,
ClassLoader classLoader)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getClassDescriptor0
protected static ClassDescriptor getClassDescriptor0(Class<? extends ClassDescriptorResolver> resolverType,
String className,
URL source,
ClassLoader classLoader)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getPrimitiveBoxedClass
public static Class<?> getPrimitiveBoxedClass(String className)
getPrimitiveClass
public static Class<?> getPrimitiveClass(String className)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getClass
public static Class<?> getClass(String className,
ClassLoader classLoader)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
checkSupportClass
public static void checkSupportClass(Class<?> handlerClass,
ClassDescriptor beanClass,
Class<?>... tagClasses)
reset
public static void reset()
createMethodDescriptor
public static MethodDescriptor createMethodDescriptor(Method javaMethod,
ClassLoader classLoader)
createFieldDescriptor
public static FieldDescriptor createFieldDescriptor(Field javaField,
ClassLoader classLoader)
getJAXXObjectDescriptor
public static JAXXObjectDescriptor getJAXXObjectDescriptor(Class<?> jaxxClass)
Copyright © 2008-2011 CodeLutin. All Rights Reserved.