EclipseLink 2.4.0, build 'v20120411-r11144' 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


Constructor Summary
CompilerHelper()
           
 
Method Summary
static void addClassToClassLoader(JavaClass cls, java.lang.ClassLoader loader)
           
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
 

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)

EclipseLink 2.4.0, build 'v20120411-r11144' API Reference