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
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description CompilerHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.classstatic JAXBContext
getXmlBindingsModelContext()
The method will load the eclipselink metadata model and return the corresponding JAXBContextstatic boolean
isSimpleType(TypeInfo info)
-
-
-
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
-
-
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.Map<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)
-
isSimpleType
public static boolean isSimpleType(TypeInfo info)
-
-