Package com.sun.tools.jxc.api.impl.j2s
Class JavaCompilerImpl
java.lang.Object
com.sun.tools.jxc.api.impl.j2s.JavaCompilerImpl
- All Implemented Interfaces:
JavaCompiler
- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind(Collection<Reference> rootClasses, Map<QName, Reference> additionalElementDecls, String defaultNamespaceRemap, ProcessingEnvironment env) Compiles the given annotated Java source code.
-
Constructor Details
-
JavaCompilerImpl
public JavaCompilerImpl()
-
-
Method Details
-
bind
public J2SJAXBModel bind(Collection<Reference> rootClasses, Map<QName, Reference> additionalElementDecls, String defaultNamespaceRemap, ProcessingEnvironment env) Description copied from interface:JavaCompilerCompiles the given annotated Java source code.This operation takes a set of "root types", then compute the list of all the types that need to be bound by forming a transitive reflexive closure of types that are referenced by the root types.
Errors will be sent to
ProcessingEnvironment.getMessager().- Specified by:
bindin interfaceJavaCompiler- Parameters:
rootClasses- The list of types that needs to be bound to XML. "root references" from JAX-RPC to JAXB is always in the form of (type,annotations) pair.additionalElementDecls- Add element declarations for the specified element names to the XML types mapped from the correspondingReferences. ThoseReferences must be included in therootTypesparameter. In this map, aReferencecan be null, in which case the element name is declared to have an empty complex type. (<xs:element name='foo'><xs:complexType/></xs:element>) This parameter can be null, in which case the method behaves as if the empty map is given.defaultNamespaceRemap- If not-null, all the uses of the empty default namespace ("") will be replaced by this namespace URI.env- The caller supplied view to the annotated source code that JAXB is going to process.- Returns:
- Non-null if no error was reported. Otherwise null.
-