Top Description Fields Constructors Methods
com.sun.tools.xjc

public Class XJCTask

extends ProtectedTask
Class Inheritance
Imports
java.io.IOException, com.sun.istack.tools.ProtectedTask, org.apache.tools.ant.BuildException

Captures the properties and then delegate to XJC1 or XJC2 by looking at the source attribute.
Author
Bhakti Mehta

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
public
XJCTask()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
protected ClassLoader
createClassLoader()

Implements abstract com.sun.istack.tools.ProtectedTask.createClassLoader.

Creates a protective class loader that will host the actual task.

protected String
getCoreClassName()

Implements abstract com.sun.istack.tools.ProtectedTask.getCoreClassName.

Returns the name of the class that extends Task.This class will be loaded int the protected classloader.

public void
setSource(String version)

The version of the compiler to run

Inherited from com.sun.istack.tools.ProtectedTask:
createDynamicElementexecutesetDynamicAttribute

Field Detail

sourceback to summary
private String source

Constructor Detail

XJCTaskback to summary
public XJCTask()

Default constructor.

Method Detail

createClassLoaderback to summary
protected ClassLoader createClassLoader() throws ClassNotFoundException, IOException

Implements abstract com.sun.istack.tools.ProtectedTask.createClassLoader.

Doc from com.sun.istack.tools.ProtectedTask.createClassLoader.

Creates a protective class loader that will host the actual task.

Annotations
@Override
Exceptions
ClassNotFoundException:
if required APIs are not found
IOException:
if error happens
getCoreClassNameback to summary
protected String getCoreClassName()

Implements abstract com.sun.istack.tools.ProtectedTask.getCoreClassName.

Doc from com.sun.istack.tools.ProtectedTask.getCoreClassName.

Returns the name of the class that extends Task.This class will be loaded int the protected classloader.

Annotations
@Override
setSourceback to summary
public void setSource(String version)

The version of the compiler to run