Class CompilerHelper
java.lang.Object
org.eclipse.persistence.jaxb.compiler.CompilerHelper
Helper class for code that needs to be shared between AnnotationsProcessor,
MappingsGenerator, SchemaGenerator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addClassToClassLoader
(JavaClass cls, ClassLoader loader) static Object
createAccessorFor
(JavaClass jClass, Property property, Helper helper, org.eclipse.persistence.internal.jaxb.AccessorFactoryWrapper accessorFactory) static JavaClass
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
The method will load the eclipselink metadata model and return the corresponding JAXBContextstatic boolean
isSimpleType
(TypeInfo info)
-
Field Details
-
XML_LOCATION_ANNOTATION_NAME
- See Also:
-
OLD_XML_LOCATION_ANNOTATION_NAME
- See Also:
-
INTERNAL_XML_LOCATION_ANNOTATION_NAME
- See Also:
-
ACCESSOR_FACTORY_ANNOTATION_CLASS
-
ACCESSOR_FACTORY_VALUE_METHOD
-
OLD_ACCESSOR_FACTORY_ANNOTATION_CLASS
-
OLD_ACCESSOR_FACTORY_VALUE_METHOD
-
INTERNAL_ACCESSOR_FACTORY_ANNOTATION_CLASS
-
INTERNAL_ACCESSOR_FACTORY_VALUE_METHOD
-
XML_LOCATION_ANNOTATION_CLASS
-
OLD_XML_LOCATION_ANNOTATION_CLASS
-
INTERNAL_XML_LOCATION_ANNOTATION_CLASS
-
-
Constructor Details
-
CompilerHelper
public CompilerHelper()
-
-
Method Details
-
getTypeFromAdapterClass
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
The method will load the eclipselink metadata model and return the corresponding JAXBContext -
getNextMappedSuperClass
-
addClassToClassLoader
-
createAccessorFor
-
isSimpleType
-