Top Inners Fields Constructors Methods
com.sun.tools.jxc

public Class SchemaGenBase

extends ApBasedTask
Class Inheritance
Known Direct Subclasses
com.sun.tools.jxc.SchemaGenTask
Annotations
@SuppressWarnings:exports
Imports
java.io.File, .IOException, java.util.ArrayList, .HashMap, .List, .Map, javax.annotation.processing.Processor, org.apache.tools.ant.AntClassLoader, .BuildException, .Project, org.apache.tools.ant.taskdefs.Execute, .LogStreamHandler, org.apache.tools.ant.types.Commandline, .CommandlineJava, .Path

Author
Yan GAO ([email protected])

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class
SchemaGenBase.Schema

Nested schema element to specify the namespace -> file name mapping.

Field Summary

Modifier and TypeField and Description
private String
private String
private String
private String
private final CommandlineJava
private File
private boolean
private String
private Path
private Path
private String
private final List<SchemaGenBase.Schema>
private Path

Constructor Summary

AccessConstructor and Description
public
SchemaGenBase()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
protected void
compile()

Overrides com.sun.tools.jxc.ApBasedTask.compile.

Perform the compilation.

public Commandline.Argument
public SchemaGenBase.Schema
public String
public String
public String
public String
pack-priv CommandlineJava
protected String
public File
protected String
public boolean
public String
public Path
getModulepath()

Overrides org.apache.tools.ant.taskdefs.Javac.getModulepath.

Gets the modulepath to be used for this compilation.

public Path
getModulesourcepath()

Overrides org.apache.tools.ant.taskdefs.Javac.getModulesourcepath.

Gets the modulesourcepath to be used for this compilation.

public String
protected Processor
getProcessor()

Implements abstract com.sun.tools.jxc.ApBasedTask.getProcessor.

Creates a factory that does the actual job.

public Path
getUpgrademodulepath()

Overrides org.apache.tools.ant.taskdefs.Javac.getUpgrademodulepath.

Gets the upgrademodulepath to be used for this compilation.

private int
run(String[] command)

public void
public void
public void
public void
public void
setEpisode(File
episode file
f
)

Sets the episode file to be generated.

public void
setFork(boolean flg)

Overrides org.apache.tools.ant.taskdefs.Javac.setFork.

If true, forks the javac compiler.

public void
public void
setModulepath(Path mp)

Overrides org.apache.tools.ant.taskdefs.Javac.setModulepath.

Set the modulepath to be used for this compilation.

public void
setModulesourcepath(Path msp)

Overrides org.apache.tools.ant.taskdefs.Javac.setModulesourcepath.

Set the modulesourcepath to be used for this compilation.

public void
protected CommandlineJava

Returns:

ready to run command line
setupCommand
()

Set up command line to invoke.

protected void
setupCommandlineSwitches(Commandline cmd)

Implements abstract com.sun.tools.jxc.ApBasedTask.setupCommandlineSwitches.

Implemented by the derived class to set up command line switches passed to annotation processing.

pack-priv void
public void
setUpgrademodulepath(Path ump)

Overrides org.apache.tools.ant.taskdefs.Javac.setUpgrademodulepath.

Set the upgrademodulepath to be used for this compilation.

Field Detail

addexportsback to summary
private String addexports
addmodulesback to summary
private String addmodules
addopensback to summary
private String addopens
addreadsback to summary
private String addreads
cmdback to summary
private final CommandlineJava cmd
episodeback to summary
private File episode
forkback to summary
private boolean fork

Hides org.apache.tools.ant.taskdefs.Javac.fork.

limitmodulesback to summary
private String limitmodules
modulepathback to summary
private Path modulepath

Hides org.apache.tools.ant.taskdefs.Javac.modulepath.

modulesourcepathback to summary
private Path modulesourcepath
patchmoduleback to summary
private String patchmodule
schemasback to summary
private final List<SchemaGenBase.Schema> schemas
upgrademodulepathback to summary
private Path upgrademodulepath

Hides org.apache.tools.ant.taskdefs.Javac.upgrademodulepath.

Constructor Detail

SchemaGenBaseback to summary
public SchemaGenBase()

Default constructor.

Method Detail

compileback to summary
protected void compile()

Overrides com.sun.tools.jxc.ApBasedTask.compile.

Doc from org.apache.tools.ant.taskdefs.Javac.compile.

Perform the compilation.

Annotations
@Override
createJvmargback to summary
public Commandline.Argument createJvmarg()
createSchemaback to summary
public SchemaGenBase.Schema createSchema()
getAddexportsback to summary
public String getAddexports()
getAddmodulesback to summary
public String getAddmodules()
getAddopensback to summary
public String getAddopens()
getAddreadsback to summary
public String getAddreads()
getCommandlineback to summary
pack-priv CommandlineJava getCommandline()
getCompilationMessageback to summary
protected String getCompilationMessage()

Implements abstract com.sun.tools.jxc.ApBasedTask.getCompilationMessage.

Annotations
@Override
getEpisodeback to summary
public File getEpisode()
getFailedMessageback to summary
protected String getFailedMessage()

Implements abstract com.sun.tools.jxc.ApBasedTask.getFailedMessage.

Annotations
@Override
getForkback to summary
public boolean getFork()
getLimitmodulesback to summary
public String getLimitmodules()
getModulepathback to summary
public Path getModulepath()

Overrides org.apache.tools.ant.taskdefs.Javac.getModulepath.

Doc from org.apache.tools.ant.taskdefs.Javac.getModulepath.

Gets the modulepath to be used for this compilation.

Annotations
@Override
getModulesourcepathback to summary
public Path getModulesourcepath()

Overrides org.apache.tools.ant.taskdefs.Javac.getModulesourcepath.

Doc from org.apache.tools.ant.taskdefs.Javac.getModulesourcepath.

Gets the modulesourcepath to be used for this compilation.

Annotations
@Override
getPatchmoduleback to summary
public String getPatchmodule()
getProcessorback to summary
protected Processor getProcessor()

Implements abstract com.sun.tools.jxc.ApBasedTask.getProcessor.

Doc from com.sun.tools.jxc.ApBasedTask.getProcessor.

Creates a factory that does the actual job.

Annotations
@Override
getUpgrademodulepathback to summary
public Path getUpgrademodulepath()

Overrides org.apache.tools.ant.taskdefs.Javac.getUpgrademodulepath.

Doc from org.apache.tools.ant.taskdefs.Javac.getUpgrademodulepath.

Gets the upgrademodulepath to be used for this compilation.

Annotations
@Override
runback to summary
private int run(String[] command) throws BuildException
setAddexportsback to summary
public void setAddexports(String aes)
setAddmodulesback to summary
public void setAddmodules(String ams)
setAddopensback to summary
public void setAddopens(String aos)
setAddreadsback to summary
public void setAddreads(String ars)
setEpisodeback to summary
public void setEpisode(File f)

Sets the episode file to be generated. Null to not to generate one, which is the default behavior.

Parameters
f:File

episode file

setForkback to summary
public void setFork(boolean flg)

Overrides org.apache.tools.ant.taskdefs.Javac.setFork.

Doc from org.apache.tools.ant.taskdefs.Javac.setFork.

If true, forks the javac compiler.

Annotations
@Override
setLimitmodulesback to summary
public void setLimitmodules(String lms)
setModulepathback to summary
public void setModulepath(Path mp)

Overrides org.apache.tools.ant.taskdefs.Javac.setModulepath.

Doc from org.apache.tools.ant.taskdefs.Javac.setModulepath.

Set the modulepath to be used for this compilation.

Annotations
@Override
setModulesourcepathback to summary
public void setModulesourcepath(Path msp)

Overrides org.apache.tools.ant.taskdefs.Javac.setModulesourcepath.

Doc from org.apache.tools.ant.taskdefs.Javac.setModulesourcepath.

Set the modulesourcepath to be used for this compilation.

Annotations
@Override
setPatchmoduleback to summary
public void setPatchmodule(String pms)
setupCommandback to summary
protected CommandlineJava setupCommand()

Set up command line to invoke.

Returns:CommandlineJava

ready to run command line

setupCommandlineSwitchesback to summary
protected void setupCommandlineSwitches(Commandline cmd)

Implements abstract com.sun.tools.jxc.ApBasedTask.setupCommandlineSwitches.

Doc from com.sun.tools.jxc.ApBasedTask.setupCommandlineSwitches.

Implemented by the derived class to set up command line switches passed to annotation processing.

Annotations
@Override
setupForkCommandback to summary
pack-priv void setupForkCommand(String className)
setUpgrademodulepathback to summary
public void setUpgrademodulepath(Path ump)

Overrides org.apache.tools.ant.taskdefs.Javac.setUpgrademodulepath.

Doc from org.apache.tools.ant.taskdefs.Javac.setUpgrademodulepath.

Set the upgrademodulepath to be used for this compilation.

Annotations
@Override
com.sun.tools.jxc back to summary

public Class SchemaGenBase.Schema

extends Object
Class Inheritance

Nested schema element to specify the namespace -> file name mapping.

Field Summary

Modifier and TypeField and Description
private File
private String

Constructor Summary

AccessConstructor and Description
public
Schema()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public void
setFile(String fileName)

public void
setNamespace(String namespace)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fileback to summary
private File file
namespaceback to summary
private String namespace

Constructor Detail

Schemaback to summary
public Schema()

Default constructor.

Method Detail

setFileback to summary
public void setFile(String fileName)
setNamespaceback to summary
public void setNamespace(String namespace)