jaxx.compiler
Class CompilerOptions

java.lang.Object
  extended by jaxx.compiler.CompilerOptions

public class CompilerOptions
extends java.lang.Object

Stores options which affect the jaxxc tool's operation. These options are generally specified by the user on the command line.


Field Summary
protected  java.lang.String[] extraImports
          list of fqn of class toimport for all generated jaxx files
protected  java.lang.String helpsetI18nPrefix
          The prefix to add to i18n key for any help i18n key.
protected  java.lang.String helpsetIndexI18nSuffix
          The suffix to add to i18n key for an toc Id.
protected  java.lang.String helpSetName
          The helpset name
protected  java.lang.String helpsetTitleI18nSuffix
          The suffix to add to i18n key for an help Id.
protected  java.lang.String helpsetTocI18nSuffix
          The suffix to add to i18n key for an toc Id.
protected  java.lang.String jaxxContextImplementorClass
          the name of implementation of JAXXContext to be used on JAXXObject.
 
Constructor Summary
CompilerOptions()
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
           
 java.lang.String getClassPath()
          Returns the class path to be used during compilation.
 java.lang.Class<? extends JAXXCompiler> getCompilerClass()
           
 java.lang.Class<? extends CompiledObjectDecorator> getDefaultDecoratorClass()
           
 java.lang.Class<?> getDefaultErrorUI()
           
 java.lang.String[] getExtraImports()
           
 java.lang.String getHelpBrokerFQN()
           
 java.lang.String getHelpsetI18nPrefix()
           
 java.lang.String getHelpsetIndexI18nSuffix()
           
 java.lang.String getHelpSetName()
           
 java.lang.String getHelpsetTitleI18nSuffix()
           
 java.lang.String getHelpsetTocI18nSuffix()
           
 java.lang.String getJavacOpts()
          Returns the options to be passed into javac.
 java.io.File getJavacTargetDirectory()
          Returns the target directory, generally specified with the "-d" option on the command line.
 java.lang.String getJaxxContextImplementorClass()
           
 boolean getKeepJavaFiles()
          Returns whether or not generated Java files should be preserved after compilation.
 boolean getOptimize()
          Returns whether or not optimization should be performed.
 java.io.File getTargetDirectory()
          Returns the target directory, generally specified with the "-d" option on the command line.
 java.lang.Class<?> getValidatorClass()
           
 java.lang.String getValidatorFQN()
          Deprecated. 
 boolean isAddLogger()
           
 boolean isGenerateHelp()
           
 boolean isI18nable()
           
 boolean isKeepJavaFiles()
           
 boolean isOptimize()
           
 boolean isProfile()
           
 boolean isResetAfterCompile()
           
 boolean isUseUIManagerForIcon()
           
 boolean isVerbose()
           
 void setAddLogger(boolean addLogger)
           
 void setClassLoader(java.lang.ClassLoader classLoader)
           
 void setClassPath(java.lang.String classPath)
          Sets the class path to be used during compilation.
 void setCompilerClass(java.lang.Class<? extends JAXXCompiler> compilerClass)
           
 void setDefaultDecoratorClass(java.lang.Class<? extends CompiledObjectDecorator> defaultDecoratorClass)
           
 void setDefaultErrorUI(java.lang.Class<?> defaultErrorUI)
           
 void setExtraImports(java.lang.String[] extraImports)
           
 void setGenerateHelp(boolean generateHelp)
           
 void setHelpBrokerFQN(java.lang.String helpBrokerFQN)
           
 void setHelpsetI18nPrefix(java.lang.String helpsetI18nPrefix)
           
 void setHelpsetIndexI18nSuffix(java.lang.String helpsetIndexI18nSuffix)
           
 void setHelpSetName(java.lang.String helpSetName)
           
 void setHelpsetTitleI18nSuffix(java.lang.String helpsetTitleI18nSuffix)
           
 void setHelpsetTocI18nSuffix(java.lang.String helpsetTocI18nSuffix)
           
 void setI18nable(boolean i18nable)
           
 void setJavacOpts(java.lang.String javacOpts)
          Sets options to be passed into javac.
 void setJavacTargetDirectory(java.io.File javacTargetDirectory)
           
 void setJaxxContextImplementorClass(java.lang.String jaxxContextImplementorClass)
           
 void setKeepJavaFiles(boolean keepJavaFiles)
          Sets whether or not generated Java files should be preserved after compilation.
 void setOptimize(boolean optimize)
          Sets whether or not optimizations should be performed.
 void setProfile(boolean profile)
           
 void setResetAfterCompile(boolean resetAfterCompile)
           
 void setTargetDirectory(java.io.File targetDirectory)
          Sets the target directory into which compiled classes will be placed.
 void setUseUIManagerForIcon(boolean useUIManagerForIcon)
           
 void setValidatorClass(java.lang.Class<?> validatorClass)
           
 void setValidatorFQN(java.lang.String validatorFQN)
          Deprecated. 
 void setVerbose(boolean verbose)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jaxxContextImplementorClass

protected java.lang.String jaxxContextImplementorClass
the name of implementation of JAXXContext to be used on JAXXObject.


extraImports

protected java.lang.String[] extraImports
list of fqn of class toimport for all generated jaxx files


helpsetI18nPrefix

protected java.lang.String helpsetI18nPrefix
The prefix to add to i18n key for any help i18n key.

Since:
1.3

helpsetTitleI18nSuffix

protected java.lang.String helpsetTitleI18nSuffix
The suffix to add to i18n key for an help Id.

Since:
1.3

helpsetTocI18nSuffix

protected java.lang.String helpsetTocI18nSuffix
The suffix to add to i18n key for an toc Id.

Since:
1.3

helpsetIndexI18nSuffix

protected java.lang.String helpsetIndexI18nSuffix
The suffix to add to i18n key for an toc Id.

Since:
1.3

helpSetName

protected java.lang.String helpSetName
The helpset name

Since:
1.3
Constructor Detail

CompilerOptions

public CompilerOptions()
Method Detail

getJavacTargetDirectory

public java.io.File getJavacTargetDirectory()
Returns the target directory, generally specified with the "-d" option on the command line.

Returns:
the target directory
See Also:
setTargetDirectory(java.io.File)

getTargetDirectory

public java.io.File getTargetDirectory()
Returns the target directory, generally specified with the "-d" option on the command line.

Returns:
the target directory
See Also:
setTargetDirectory(java.io.File)

setTargetDirectory

public void setTargetDirectory(java.io.File targetDirectory)
Sets the target directory into which compiled classes will be placed.

Parameters:
targetDirectory - the target directory
See Also:
getTargetDirectory()

setJavacTargetDirectory

public void setJavacTargetDirectory(java.io.File javacTargetDirectory)

getClassPath

public java.lang.String getClassPath()
Returns the class path to be used during compilation.

Returns:
the class path to be used during compilation
See Also:
setClassPath(java.lang.String)

setClassPath

public void setClassPath(java.lang.String classPath)
Sets the class path to be used during compilation.

Parameters:
classPath - the compilation class path
See Also:
getClassPath()

getJavacOpts

public java.lang.String getJavacOpts()
Returns the options to be passed into javac.

Returns:
options to be passed into javac
See Also:
setJavacOpts(java.lang.String)

setJavacOpts

public void setJavacOpts(java.lang.String javacOpts)
Sets options to be passed into javac.

Parameters:
javacOpts - options to be passed into javac
See Also:
getJavacOpts()

getKeepJavaFiles

public boolean getKeepJavaFiles()
Returns whether or not generated Java files should be preserved after compilation.

Returns:
true if generated Java files should be preserved, false to delete
See Also:
setKeepJavaFiles(boolean)

setKeepJavaFiles

public void setKeepJavaFiles(boolean keepJavaFiles)
Sets whether or not generated Java files should be preserved after compilation.

Parameters:
keepJavaFiles - true if generated Java files should be preserved, false to delete
See Also:
getKeepJavaFiles()

getOptimize

public boolean getOptimize()
Returns whether or not optimization should be performed.

Returns:
whether or not optimizations should be performed

setOptimize

public void setOptimize(boolean optimize)
Sets whether or not optimizations should be performed.

Parameters:
optimize - true to perform optimizations during compilation
See Also:
getOptimize()

isVerbose

public boolean isVerbose()

setVerbose

public void setVerbose(boolean verbose)

isI18nable

public boolean isI18nable()

isUseUIManagerForIcon

public boolean isUseUIManagerForIcon()

setI18nable

public void setI18nable(boolean i18nable)

isAddLogger

public boolean isAddLogger()

setAddLogger

public void setAddLogger(boolean addLogger)

getJaxxContextImplementorClass

public java.lang.String getJaxxContextImplementorClass()

setJaxxContextImplementorClass

public void setJaxxContextImplementorClass(java.lang.String jaxxContextImplementorClass)

getExtraImports

public java.lang.String[] getExtraImports()

setExtraImports

public void setExtraImports(java.lang.String[] extraImports)

isResetAfterCompile

public boolean isResetAfterCompile()

setResetAfterCompile

public void setResetAfterCompile(boolean resetAfterCompile)

setUseUIManagerForIcon

public void setUseUIManagerForIcon(boolean useUIManagerForIcon)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setDefaultErrorUI

public void setDefaultErrorUI(java.lang.Class<?> defaultErrorUI)

isKeepJavaFiles

public boolean isKeepJavaFiles()

isOptimize

public boolean isOptimize()

getDefaultErrorUI

public java.lang.Class<?> getDefaultErrorUI()

getClassLoader

public java.lang.ClassLoader getClassLoader()

setClassLoader

public void setClassLoader(java.lang.ClassLoader classLoader)

getCompilerClass

public java.lang.Class<? extends JAXXCompiler> getCompilerClass()

setCompilerClass

public void setCompilerClass(java.lang.Class<? extends JAXXCompiler> compilerClass)

getValidatorFQN

@Deprecated
public java.lang.String getValidatorFQN()
Deprecated. 


setValidatorFQN

@Deprecated
public void setValidatorFQN(java.lang.String validatorFQN)
Deprecated. 


getDefaultDecoratorClass

public java.lang.Class<? extends CompiledObjectDecorator> getDefaultDecoratorClass()

setDefaultDecoratorClass

public void setDefaultDecoratorClass(java.lang.Class<? extends CompiledObjectDecorator> defaultDecoratorClass)

isProfile

public boolean isProfile()

setProfile

public void setProfile(boolean profile)

isGenerateHelp

public boolean isGenerateHelp()

setGenerateHelp

public void setGenerateHelp(boolean generateHelp)

getHelpBrokerFQN

public java.lang.String getHelpBrokerFQN()

setHelpBrokerFQN

public void setHelpBrokerFQN(java.lang.String helpBrokerFQN)

getHelpsetIndexI18nSuffix

public java.lang.String getHelpsetIndexI18nSuffix()

setHelpsetIndexI18nSuffix

public void setHelpsetIndexI18nSuffix(java.lang.String helpsetIndexI18nSuffix)

getHelpsetTitleI18nSuffix

public java.lang.String getHelpsetTitleI18nSuffix()

setHelpsetTitleI18nSuffix

public void setHelpsetTitleI18nSuffix(java.lang.String helpsetTitleI18nSuffix)

getHelpsetTocI18nSuffix

public java.lang.String getHelpsetTocI18nSuffix()

setHelpsetTocI18nSuffix

public void setHelpsetTocI18nSuffix(java.lang.String helpsetTocI18nSuffix)

getHelpSetName

public java.lang.String getHelpSetName()

setHelpSetName

public void setHelpSetName(java.lang.String helpSetName)

getHelpsetI18nPrefix

public java.lang.String getHelpsetI18nPrefix()

setHelpsetI18nPrefix

public void setHelpsetI18nPrefix(java.lang.String helpsetI18nPrefix)

getValidatorClass

public java.lang.Class<?> getValidatorClass()

setValidatorClass

public void setValidatorClass(java.lang.Class<?> validatorClass)


Copyright © 2008-2009 CodeLutin. All Rights Reserved.