public class CompileTool extends ToolBase implements ProcessorNotificationListener, CompileTool
| Modifier and Type | Field and Description |
|---|---|
protected Map |
actions |
protected boolean |
compilerDebug |
protected boolean |
compilerOptimize |
protected File |
configFile |
protected Configuration |
configuration |
protected File |
debugModelFile |
protected CompileToolDelegate |
delegate |
protected File |
destDir |
protected boolean |
doNothing |
protected boolean |
donotOverride |
protected boolean |
dontGenerateRPCStructures |
protected boolean |
dontGenerateWrapperClasses |
protected ProcessorEnvironment |
environment |
protected boolean |
explicitServiceContext |
protected boolean |
generateOneWayMethods |
protected boolean |
jaxbEnumType |
protected boolean |
keepGenerated |
protected ProcessorNotificationListener |
listener |
protected int |
mode |
protected static int |
MODE_DEFINE |
protected static int |
MODE_GEN_BOTH |
protected static int |
MODE_GEN_CLIENT |
protected static int |
MODE_GEN_SERVER |
protected static int |
MODE_IMPORT |
protected static int |
MODE_UNSPECIFIED |
protected File |
modelFile |
protected boolean |
noDataBinding |
protected boolean |
noEncodedTypes |
protected boolean |
noMultiRefEncoding |
protected File |
nonclassDestDir |
protected boolean |
noValidation |
protected boolean |
printStackTrace |
protected Processor |
processor |
protected Properties |
properties |
protected boolean |
resolveIDREF |
protected boolean |
searchSchemaForSubtypes |
protected boolean |
serializable |
protected boolean |
serializeInterfaces |
protected String |
serializerInfix |
protected File |
sourceDir |
protected boolean |
strictCompliance |
protected String |
targetVersion |
protected boolean |
unwrapDocLitWrappers |
protected boolean |
useDataHandlerOnly |
protected boolean |
useDocLiteralEncoding |
protected String |
userClasspath |
protected boolean |
useRPCLiteralEncoding |
protected boolean |
useWSIBasicProfile |
protected boolean |
verbose |
protected boolean |
wrapperFlagSeen |
| Constructor and Description |
|---|
CompileTool(OutputStream out,
String program) |
getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, report, report, runclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunprotected Properties properties
protected ProcessorEnvironment environment
protected Configuration configuration
protected Processor processor
protected ProcessorNotificationListener listener
protected Map actions
protected CompileToolDelegate delegate
protected File configFile
protected File modelFile
protected File sourceDir
protected File destDir
protected File nonclassDestDir
protected File debugModelFile
protected int mode
protected boolean doNothing
protected boolean compilerDebug
protected boolean compilerOptimize
protected boolean verbose
protected boolean noDataBinding
protected boolean noEncodedTypes
protected boolean noMultiRefEncoding
protected boolean noValidation
protected boolean explicitServiceContext
protected boolean printStackTrace
protected boolean keepGenerated
protected boolean serializable
protected boolean donotOverride
protected boolean serializeInterfaces
protected boolean searchSchemaForSubtypes
protected boolean useDataHandlerOnly
protected boolean dontGenerateRPCStructures
protected boolean useDocLiteralEncoding
protected boolean useRPCLiteralEncoding
protected boolean useWSIBasicProfile
protected boolean generateOneWayMethods
protected boolean resolveIDREF
protected boolean strictCompliance
protected boolean jaxbEnumType
protected boolean unwrapDocLitWrappers
protected boolean wrapperFlagSeen
protected boolean dontGenerateWrapperClasses
protected String targetVersion
protected String serializerInfix
protected String userClasspath
protected static final int MODE_UNSPECIFIED
protected static final int MODE_IMPORT
protected static final int MODE_DEFINE
protected static final int MODE_GEN_CLIENT
protected static final int MODE_GEN_SERVER
protected static final int MODE_GEN_BOTH
public CompileTool(OutputStream out, String program)
protected void initialize()
initialize in class ToolBasepublic ProcessorEnvironment getEnvironment()
getEnvironment in interface CompileToolpublic Processor getProcessor()
getProcessor in interface CompileToolpublic void setDelegate(CompileToolDelegate delegate)
setDelegate in interface CompileToolprotected boolean parseArguments(String[] args)
parseArguments in class ToolBaseprotected void resetOptionsForTargetVersion()
public Localizable getVersion()
public String getVersionString()
protected void usage()
protected void help()
public void run()
throws Exception
run in interface CompileToolrun in class ToolBaseExceptionpublic boolean wasSuccessful()
wasSuccessful in class ToolBaseprotected String getGenericErrorMessage()
getGenericErrorMessage in class ToolBaseprotected String getResourceBundleName()
getResourceBundleName in class ToolBasepublic void printStackTrace(Throwable t)
printStackTrace in class ToolBaseprotected void beforeHook()
protected String getSourceVersion()
protected void withModelHook()
protected void afterHook()
public void removeGeneratedFiles()
protected ProcessorEnvironment createEnvironment() throws Exception
Exceptionprotected void setEnvironmentValues(ProcessorEnvironment env)
protected Configuration createConfiguration() throws Exception
Exceptionprotected void registerProcessorActions(Processor processor)
protected String createClasspathString()
protected void compileGeneratedClasses()
protected ProcessorAction getAction(String name)
public void onError(Localizable msg)
onError in interface ProcessorNotificationListenerpublic void onWarning(Localizable msg)
onWarning in interface ProcessorNotificationListenerpublic void onInfo(Localizable msg)
onInfo in interface ProcessorNotificationListenerCopyright © 2017–2019 Eclipse Foundation. All rights reserved.