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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddClassToClassLoader(JavaClass cls, ClassLoader loader) static ObjectcreateAccessorFor(JavaClass jClass, Property property, Helper helper, org.eclipse.persistence.internal.jaxb.AccessorFactoryWrapper accessorFactory) static JavaClassstatic JavaClassgetTypeFromAdapterClass(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 JAXBContextThe method will load the eclipselink metadata model and return the corresponding JAXBContextstatic booleanisSimpleType(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
-