java.lang.Object
org.eclipse.persistence.jaxb.compiler.CompilerHelper

public class CompilerHelper extends Object
Helper class for code that needs to be shared between AnnotationsProcessor, MappingsGenerator, SchemaGenerator
  • Field Details

    • XML_LOCATION_ANNOTATION_NAME

      public static final String XML_LOCATION_ANNOTATION_NAME
      See Also:
    • OLD_XML_LOCATION_ANNOTATION_NAME

      public static final String OLD_XML_LOCATION_ANNOTATION_NAME
      See Also:
    • INTERNAL_XML_LOCATION_ANNOTATION_NAME

      public static final String INTERNAL_XML_LOCATION_ANNOTATION_NAME
      See Also:
    • ACCESSOR_FACTORY_ANNOTATION_CLASS

      public static Class<?> ACCESSOR_FACTORY_ANNOTATION_CLASS
    • ACCESSOR_FACTORY_VALUE_METHOD

      public static Method ACCESSOR_FACTORY_VALUE_METHOD
    • OLD_ACCESSOR_FACTORY_ANNOTATION_CLASS

      public static Class<?> OLD_ACCESSOR_FACTORY_ANNOTATION_CLASS
    • OLD_ACCESSOR_FACTORY_VALUE_METHOD

      public static Method OLD_ACCESSOR_FACTORY_VALUE_METHOD
    • INTERNAL_ACCESSOR_FACTORY_ANNOTATION_CLASS

      public static Class<?> INTERNAL_ACCESSOR_FACTORY_ANNOTATION_CLASS
    • INTERNAL_ACCESSOR_FACTORY_VALUE_METHOD

      public static Method INTERNAL_ACCESSOR_FACTORY_VALUE_METHOD
    • XML_LOCATION_ANNOTATION_CLASS

      public static Class<?> XML_LOCATION_ANNOTATION_CLASS
    • OLD_XML_LOCATION_ANNOTATION_CLASS

      public static Class<?> OLD_XML_LOCATION_ANNOTATION_CLASS
    • INTERNAL_XML_LOCATION_ANNOTATION_CLASS

      public static Class<?> INTERNAL_XML_LOCATION_ANNOTATION_CLASS
  • Constructor Details

    • CompilerHelper

      public CompilerHelper()
  • Method Details

    • 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, Map<String,TypeInfo> typeInfo, Helper helper)
    • addClassToClassLoader

      public static void addClassToClassLoader(JavaClass cls, ClassLoader loader)
    • createAccessorFor

      public static Object createAccessorFor(JavaClass jClass, Property property, Helper helper, AccessorFactoryWrapper accessorFactory)
    • isSimpleType

      public static boolean isSimpleType(TypeInfo info)