Package jaxx.compiler.decorators
Class HelpRootCompiledObjectDecorator
java.lang.Object
jaxx.compiler.decorators.DefaultCompiledObjectDecorator
jaxx.compiler.decorators.HelpRootCompiledObjectDecorator
- All Implemented Interfaces:
CompiledObjectDecorator
@Component(role=CompiledObjectDecorator.class, hint="help") public class HelpRootCompiledObjectDecorator extends DefaultCompiledObjectDecorator
A decorator to place on a root compiled object to process javaHelp on the file.
- Since:
- 1.2
- Author:
- Tony Chemit - chemit@codelutin.com
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Set<java.lang.String>helpIdsthe list of discovered helpIdFields inherited from class jaxx.compiler.decorators.DefaultCompiledObjectDecorator
log -
Constructor Summary
Constructors Constructor Description HelpRootCompiledObjectDecorator() -
Method Summary
Modifier and Type Method Description voidfinalizeCompiler(JAXXCompiler compiler, CompiledObject root, CompiledObject object, JavaFile javaFile, java.lang.String packageName, java.lang.String className, java.lang.String fullClassName)Finalize the given compiled object before any generation in thefile.protected java.lang.StringgetBrokerFQN(JAXXCompiler compiler)protected java.lang.StringgetHelpId(CompiledObject o)static java.util.Set<java.lang.String>getHelpIds()java.lang.StringgetName()protected booleanisNeedInterface(JAXXCompiler compiler, java.lang.Class<?> validatorInterface)Detects if the givencompilerneed the validatorInterface.Methods inherited from class jaxx.compiler.decorators.DefaultCompiledObjectDecorator
addClientProperties, createCompleteSetupMethod, createInitializer, getCreationCodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
helpIds
protected static java.util.Set<java.lang.String> helpIdsthe list of discovered helpId
-
-
Constructor Details
-
HelpRootCompiledObjectDecorator
public HelpRootCompiledObjectDecorator()
-
-
Method Details
-
getName
public java.lang.String getName()- Specified by:
getNamein interfaceCompiledObjectDecorator- Overrides:
getNamein classDefaultCompiledObjectDecorator- Returns:
- the name of the decorator (match the content of a decorator attribute value in a JAXX file)
-
getBrokerFQN
-
getHelpId
-
finalizeCompiler
public void finalizeCompiler(JAXXCompiler compiler, CompiledObject root, CompiledObject object, JavaFile javaFile, java.lang.String packageName, java.lang.String className, java.lang.String fullClassName) throws java.lang.ClassNotFoundExceptionDescription copied from interface:CompiledObjectDecoratorFinalize the given compiled object before any generation in thefile.- Specified by:
finalizeCompilerin interfaceCompiledObjectDecorator- Overrides:
finalizeCompilerin classDefaultCompiledObjectDecorator- Parameters:
compiler- the compiler to useroot- the root compiled object of the jaxx fileobject- the compiled object to treatejavaFile- the file to treatepackageName- the package nameclassName- the (simple ?) class namefullClassName- the fully class name- Throws:
java.lang.ClassNotFoundException- if a class is not found
-
isNeedInterface
protected boolean isNeedInterface(JAXXCompiler compiler, java.lang.Class<?> validatorInterface) throws java.lang.ClassNotFoundExceptionDetects if the givencompilerneed the validatorInterface. We need to test it deeply since the interface is added by the decorator and is not present on the symbol table of compiled objects.- Parameters:
compiler- the compiler to testvalidatorInterface- the validator interface to seek for- Returns:
trueif we need to add the interface,falseotherwise- Throws:
java.lang.ClassNotFoundException- if could not find a class- Since:
- 2.4
-
getHelpIds
public static java.util.Set<java.lang.String> getHelpIds()
-