public class CompilerHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Class |
ACCESSOR_FACTORY_ANNOTATION_CLASS |
static java.lang.reflect.Method |
ACCESSOR_FACTORY_VALUE_METHOD |
static java.lang.Class |
INTERNAL_ACCESSOR_FACTORY_ANNOTATION_CLASS |
static java.lang.reflect.Method |
INTERNAL_ACCESSOR_FACTORY_VALUE_METHOD |
static java.lang.Class |
INTERNAL_XML_LOCATION_ANNOTATION_CLASS |
static java.lang.String |
INTERNAL_XML_LOCATION_ANNOTATION_NAME |
static java.lang.Class |
XML_LOCATION_ANNOTATION_CLASS |
static java.lang.String |
XML_LOCATION_ANNOTATION_NAME |
Constructor and Description |
---|
CompilerHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addClassToClassLoader(JavaClass cls,
java.lang.ClassLoader loader) |
static java.lang.Object |
createAccessorFor(JavaClass jClass,
Property property,
Helper helper,
org.eclipse.persistence.internal.jaxb.AccessorFactoryWrapper accessorFactory) |
static JavaClass |
getNextMappedSuperClass(JavaClass cls,
java.util.Map<java.lang.String,TypeInfo> typeInfo,
Helper helper) |
static JavaClass |
getTypeFromAdapterClass(JavaClass adapterClass,
Helper helper)
If adapter class is null return null If there is a marshal method that
returns something other than Object on the adapter class return the
return type of that method Otherwise return Object.class
|
static JAXBContext |
getXmlBindingsModelContext()
The method will load the eclipselink metadata model and return the
corresponding JAXBContext
|
static boolean |
isSimpleType(TypeInfo info) |
public static final java.lang.String XML_LOCATION_ANNOTATION_NAME
public static final java.lang.String INTERNAL_XML_LOCATION_ANNOTATION_NAME
public static java.lang.Class ACCESSOR_FACTORY_ANNOTATION_CLASS
public static java.lang.reflect.Method ACCESSOR_FACTORY_VALUE_METHOD
public static java.lang.Class INTERNAL_ACCESSOR_FACTORY_ANNOTATION_CLASS
public static java.lang.reflect.Method INTERNAL_ACCESSOR_FACTORY_VALUE_METHOD
public static java.lang.Class XML_LOCATION_ANNOTATION_CLASS
public static java.lang.Class INTERNAL_XML_LOCATION_ANNOTATION_CLASS
public static JavaClass getTypeFromAdapterClass(JavaClass adapterClass, Helper helper)
public static JAXBContext getXmlBindingsModelContext()
public static JavaClass getNextMappedSuperClass(JavaClass cls, java.util.Map<java.lang.String,TypeInfo> typeInfo, Helper helper)
public static void addClassToClassLoader(JavaClass cls, java.lang.ClassLoader loader)
public static java.lang.Object createAccessorFor(JavaClass jClass, Property property, Helper helper, org.eclipse.persistence.internal.jaxb.AccessorFactoryWrapper accessorFactory)
public static boolean isSimpleType(TypeInfo info)