Package jaxx.compiler
Interface CompilerConfiguration
- All Known Implementing Classes:
DefaultCompilerConfiguration
public interface CompilerConfiguration
Configuration of a compiler task.
- Since:
- 2.0.0
- Author:
- Tony Chemit - chemit@codelutin.com
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_CSS_EXTENSIONDefault css file extension. -
Method Summary
Modifier and Type Method Description java.lang.ClassLoadergetClassLoader()java.io.FilegetCommonCss()java.lang.Class<? extends JAXXCompiler>getCompilerClass()java.lang.StringgetCssExtension()java.util.Map<java.lang.String,CompiledObjectDecorator>getDecorators()java.lang.Class<? extends CompiledObjectDecorator>getDefaultDecoratorClass()java.lang.Class<?>getDefaultErrorUI()java.lang.StringgetEncoding()java.lang.String[]getExtraImports()java.util.Map<java.lang.String,JAXXCompilerFinalizer>getFinalizers()java.lang.StringgetHelpBrokerFQN()java.util.Map<java.lang.String,Initializer>getInitializers()java.lang.Class<? extends JAXXContext>getJaxxContextClass()booleangetOptimize()Returns whether or not optimization should be performed.java.io.FilegetTargetDirectory()Returns the target directory.java.lang.StringgetValidatorFactoryFQN()booleanisAddAutoHandlerUI()booleanisAddLogger()booleanisAutoRecurseInCss()Returns whether or not should recurse in css for existing JAXX Object.booleanisGenerateHelp()booleanisGenerateMissingIdsAndStyleClassesInCss()booleanisI18nable()booleanisOptimize()booleanisProfile()booleanisResetAfterCompile()booleanisShowClassDescriptorLoading()booleanisUseUIManagerForIcon()booleanisVerbose()voidsetAddAutoHandlerUI(boolean addAutoHandlerUI)voidsetGenerateMissingIdsAndStyleClassesInCss(boolean generateMissingIdsAndStyleClassesInCss)
-
Field Details
-
DEFAULT_CSS_EXTENSION
static final java.lang.String DEFAULT_CSS_EXTENSIONDefault css file extension.- Since:
- 2.28
- See Also:
- Constant Field Values
-
-
Method Details
-
getClassLoader
java.lang.ClassLoader getClassLoader()- Returns:
- the class loader used by compilers
-
getCompilerClass
java.lang.Class<? extends JAXXCompiler> getCompilerClass()- Returns:
- the type of compiler to use
-
getDefaultDecoratorClass
java.lang.Class<? extends CompiledObjectDecorator> getDefaultDecoratorClass()- Returns:
- the type of default decorator to use if none specified
-
getDefaultErrorUI
java.lang.Class<?> getDefaultErrorUI()- Returns:
- the type of the default error UI to use for validation
-
getExtraImports
java.lang.String[] getExtraImports()- Returns:
- extra imports to add on all generated jaxx object
-
getHelpBrokerFQN
java.lang.String getHelpBrokerFQN()- Returns:
- the FQN of the help broker (can not directly a type since the help broker should (may?) be inside the sources.
-
getValidatorFactoryFQN
java.lang.String getValidatorFactoryFQN()- Returns:
- the FQN of the validator factory used to instanciate new validators.
- Since:
- 2.6
-
getJaxxContextClass
java.lang.Class<? extends JAXXContext> getJaxxContextClass()- Returns:
- the type of context to use in each generated jaxx object
-
getOptimize
boolean getOptimize()Returns whether or not optimization should be performed.- Returns:
- whether or not optimizations should be performed
-
isAutoRecurseInCss
boolean isAutoRecurseInCss()Returns whether or not should recurse in css for existing JAXX Object. Note: This functionnality was here at the beginning of the project but offers nothing very usefull, will be remove probably in JAXX 3.0.- Returns:
trueif a css file with same name as jaxx file should be included in jaxx file if found.- Since:
- 2.0.2
-
getTargetDirectory
java.io.File getTargetDirectory()Returns the target directory.- Returns:
- the target directory
-
isAddLogger
boolean isAddLogger()- Returns:
trueif a logger must add on each generated jaxx object
-
isGenerateHelp
boolean isGenerateHelp()- Returns:
trueif we are generating help
-
isI18nable
boolean isI18nable()- Returns:
trueif we use the i18n system
-
isOptimize
boolean isOptimize()- Returns:
trueto generate optimized code
-
isProfile
boolean isProfile()- Returns:
trueif a profile pass must be done
-
isResetAfterCompile
boolean isResetAfterCompile()- Returns:
trueif states must be reset after the compilation
-
isUseUIManagerForIcon
boolean isUseUIManagerForIcon()- Returns:
trueif UIManager is used to retrieve icons
-
isVerbose
boolean isVerbose()- Returns:
trueif compiler is verbose
-
isShowClassDescriptorLoading
boolean isShowClassDescriptorLoading()- Returns:
trueto trace the Class descriptor loading.- Since:
- 2.4
-
isAddAutoHandlerUI
boolean isAddAutoHandlerUI()- Returns:
trueto detect and addUIHandlerif found in class-path.- Since:
- 2.6
-
setAddAutoHandlerUI
void setAddAutoHandlerUI(boolean addAutoHandlerUI)- Parameters:
addAutoHandlerUI- new value of the state- Since:
- 2.6
-
isGenerateMissingIdsAndStyleClassesInCss
boolean isGenerateMissingIdsAndStyleClassesInCss()- Returns:
trueto generate missing ids and style classes in the CSS files- Since:
- 2.29
-
setGenerateMissingIdsAndStyleClassesInCss
void setGenerateMissingIdsAndStyleClassesInCss(boolean generateMissingIdsAndStyleClassesInCss)- Parameters:
generateMissingIdsAndStyleClassesInCss- new value of the state- Since:
- 2.29
-
getEncoding
java.lang.String getEncoding()- Returns:
- the encoding to use to write files
-
getDecorators
java.util.Map<java.lang.String,CompiledObjectDecorator> getDecorators() -
getFinalizers
java.util.Map<java.lang.String,JAXXCompilerFinalizer> getFinalizers() -
getInitializers
java.util.Map<java.lang.String,Initializer> getInitializers() -
getCommonCss
java.io.File getCommonCss()- Returns:
- the optional common css to inject in all JaxxCompiler.
- Since:
- 2.13
-
getCssExtension
java.lang.String getCssExtension()- Returns:
- the extension of css files (by default use
DEFAULT_CSS_EXTENSIONas before). - Since:
- 2.28
-