EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jaxb.compiler
Class CompilerHelper

java.lang.Object
  extended by org.eclipse.persistence.jaxb.compiler.CompilerHelper

public class CompilerHelper
extends java.lang.Object

Helper class for code that needs to be shared between AnnotationsProcessor, MappingsGenerator, SchemaGenerator


Field Summary
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 Summary
CompilerHelper()
           
 
Method Summary
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.HashMap<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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_LOCATION_ANNOTATION_NAME

public static final java.lang.String XML_LOCATION_ANNOTATION_NAME
See Also:
Constant Field Values

INTERNAL_XML_LOCATION_ANNOTATION_NAME

public static final java.lang.String INTERNAL_XML_LOCATION_ANNOTATION_NAME
See Also:
Constant Field Values

ACCESSOR_FACTORY_ANNOTATION_CLASS

public static java.lang.Class ACCESSOR_FACTORY_ANNOTATION_CLASS

ACCESSOR_FACTORY_VALUE_METHOD

public static java.lang.reflect.Method ACCESSOR_FACTORY_VALUE_METHOD

INTERNAL_ACCESSOR_FACTORY_ANNOTATION_CLASS

public static java.lang.Class INTERNAL_ACCESSOR_FACTORY_ANNOTATION_CLASS

INTERNAL_ACCESSOR_FACTORY_VALUE_METHOD

public static java.lang.reflect.Method INTERNAL_ACCESSOR_FACTORY_VALUE_METHOD

XML_LOCATION_ANNOTATION_CLASS

public static java.lang.Class XML_LOCATION_ANNOTATION_CLASS

INTERNAL_XML_LOCATION_ANNOTATION_CLASS

public static java.lang.Class INTERNAL_XML_LOCATION_ANNOTATION_CLASS
Constructor Detail

CompilerHelper

public CompilerHelper()
Method Detail

getTypeFromAdapterClass

public 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


getXmlBindingsModelContext

public static JAXBContext getXmlBindingsModelContext()
The method will load the eclipselink metadata model and return the corresponding JAXBContext


getNextMappedSuperClass

public static JavaClass getNextMappedSuperClass(JavaClass cls,
                                                java.util.HashMap<java.lang.String,TypeInfo> typeInfo,
                                                Helper helper)

addClassToClassLoader

public static void addClassToClassLoader(JavaClass cls,
                                         java.lang.ClassLoader loader)

createAccessorFor

public static java.lang.Object createAccessorFor(JavaClass jClass,
                                                 Property property,
                                                 Helper helper,
                                                 org.eclipse.persistence.internal.jaxb.AccessorFactoryWrapper accessorFactory)

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference