org.eclipse.persistence.jaxb.compiler
Class CompilerHelper
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CompilerHelper
public CompilerHelper()
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)