jaxx.compiler
Class DefaultCompilerConfiguration

java.lang.Object
  extended by jaxx.compiler.DefaultCompilerConfiguration
All Implemented Interfaces:
CompilerConfiguration

public class DefaultCompilerConfiguration
extends Object
implements CompilerConfiguration

Options of the JAXXCompiler and JAXXEngine.


Field Summary
protected  String[] extraImports
          list of fqn of class to import for all generated jaxx files
protected  Class<? extends JAXXContext> jaxxContextClass
          the name of implementation of JAXXContext to be used on JAXXObject.
 
Constructor Summary
DefaultCompilerConfiguration()
           
 
Method Summary
 ClassLoader getClassLoader()
           
 Class<? extends JAXXCompiler> getCompilerClass()
           
 Class<? extends CompiledObjectDecorator> getDefaultDecoratorClass()
           
 Class<?> getDefaultErrorUI()
           
 String getEncoding()
           
 String[] getExtraImports()
           
 String getHelpBrokerFQN()
           
 Class<? extends JAXXContext> getJaxxContextClass()
           
 boolean getOptimize()
          Returns whether or not optimization should be performed.
 File getTargetDirectory()
          Returns the target directory.
 Class<?> getValidatorClass()
           
 boolean isAddLogger()
           
 boolean isGenerateHelp()
           
 boolean isI18nable()
           
 boolean isOptimize()
           
 boolean isProfile()
           
 boolean isResetAfterCompile()
           
 boolean isUseUIManagerForIcon()
           
 boolean isVerbose()
           
 void setVerbose(boolean verbose)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jaxxContextClass

protected Class<? extends JAXXContext> jaxxContextClass
the name of implementation of JAXXContext to be used on JAXXObject.


extraImports

protected String[] extraImports
list of fqn of class to import for all generated jaxx files

Constructor Detail

DefaultCompilerConfiguration

public DefaultCompilerConfiguration()
Method Detail

getTargetDirectory

public File getTargetDirectory()
Description copied from interface: CompilerConfiguration
Returns the target directory.

Specified by:
getTargetDirectory in interface CompilerConfiguration
Returns:
the target directory

getOptimize

public boolean getOptimize()
Description copied from interface: CompilerConfiguration
Returns whether or not optimization should be performed.

Specified by:
getOptimize in interface CompilerConfiguration
Returns:
whether or not optimizations should be performed

isVerbose

public boolean isVerbose()
Specified by:
isVerbose in interface CompilerConfiguration
Returns:
true if compiler is verbose

setVerbose

public void setVerbose(boolean verbose)

isI18nable

public boolean isI18nable()
Specified by:
isI18nable in interface CompilerConfiguration
Returns:
true if we use the i18n system

isUseUIManagerForIcon

public boolean isUseUIManagerForIcon()
Specified by:
isUseUIManagerForIcon in interface CompilerConfiguration
Returns:
true if UIManager is used to retrieve icons

isAddLogger

public boolean isAddLogger()
Specified by:
isAddLogger in interface CompilerConfiguration
Returns:
true if a logger must add on each generated jaxx object

getJaxxContextClass

public Class<? extends JAXXContext> getJaxxContextClass()
Specified by:
getJaxxContextClass in interface CompilerConfiguration
Returns:
the type of context to use in each generated jaxx object

getExtraImports

public String[] getExtraImports()
Specified by:
getExtraImports in interface CompilerConfiguration
Returns:
extra imports to add on all generated jaxx object

isResetAfterCompile

public boolean isResetAfterCompile()
Specified by:
isResetAfterCompile in interface CompilerConfiguration
Returns:
true if states must be reset after the compilation

isOptimize

public boolean isOptimize()
Specified by:
isOptimize in interface CompilerConfiguration
Returns:
true to generate optimized code

getDefaultErrorUI

public Class<?> getDefaultErrorUI()
Specified by:
getDefaultErrorUI in interface CompilerConfiguration
Returns:
the type of the default error UI to use for validation

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in interface CompilerConfiguration
Returns:
the class loader used by compilers

getCompilerClass

public Class<? extends JAXXCompiler> getCompilerClass()
Specified by:
getCompilerClass in interface CompilerConfiguration
Returns:
the type of compiler to use

getDefaultDecoratorClass

public Class<? extends CompiledObjectDecorator> getDefaultDecoratorClass()
Specified by:
getDefaultDecoratorClass in interface CompilerConfiguration
Returns:
the type of default decorator to use if none specified

isProfile

public boolean isProfile()
Specified by:
isProfile in interface CompilerConfiguration
Returns:
true if a profile pass must be done

isGenerateHelp

public boolean isGenerateHelp()
Specified by:
isGenerateHelp in interface CompilerConfiguration
Returns:
true if we are generating help

getHelpBrokerFQN

public String getHelpBrokerFQN()
Specified by:
getHelpBrokerFQN in interface CompilerConfiguration
Returns:
the FQN of the help broker (can not directly a type since the help broker should (may?) be inside the sources.

getValidatorClass

public Class<?> getValidatorClass()
Specified by:
getValidatorClass in interface CompilerConfiguration
Returns:
the type of validator to use

getEncoding

public String getEncoding()
Specified by:
getEncoding in interface CompilerConfiguration
Returns:
the encoding to use to write files

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2010 CodeLutin. All Rights Reserved.