jaxx.compiler.decorators
Class HelpRootCompiledObjectDecorator
java.lang.Object
jaxx.compiler.decorators.DefaultCompiledObjectDecorator
jaxx.compiler.decorators.HelpRootCompiledObjectDecorator
- All Implemented Interfaces:
- CompiledObjectDecorator
public class HelpRootCompiledObjectDecorator
- extends DefaultCompiledObjectDecorator
A decorator to place on a root compiled object to process javaHelp on the file.
- Since:
- 1.2
- Author:
- tchemit
- Plexus component:
- role:
- "jaxx.compiler.CompiledObjectDecorator"
- role-hint:
- "help"
|
|
Field Summary |
protected static Set<String> |
helpIds
the list of discovered helpId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
helpIds
protected static Set<String> helpIds
- the list of discovered helpId
HelpRootCompiledObjectDecorator
public HelpRootCompiledObjectDecorator()
getName
public String getName()
- Specified by:
getName in interface CompiledObjectDecorator- Overrides:
getName in class DefaultCompiledObjectDecorator
- Returns:
- the name of the decorator (match the content of a decorator
attribute value in a JAXX file)
getBrokerFQN
protected String getBrokerFQN(JAXXCompiler compiler)
getHelpId
protected String getHelpId(CompiledObject o)
finalizeCompiler
public void finalizeCompiler(JAXXCompiler compiler,
CompiledObject root,
CompiledObject object,
JavaFile javaFile,
String packageName,
String className,
String fullClassName)
throws ClassNotFoundException
- Description copied from interface:
CompiledObjectDecorator
- Finalize the given compiled object before any generation in the
file.
- Specified by:
finalizeCompiler in interface CompiledObjectDecorator- Overrides:
finalizeCompiler in class DefaultCompiledObjectDecorator
- 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:
ClassNotFoundException - if a class is not found
isNeedInterface
protected boolean isNeedInterface(JAXXCompiler compiler,
Class<?> validatorInterface)
throws ClassNotFoundException
- Detects if the given
compiler need 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:
true if we need to add the interface, false otherwise
- Throws:
ClassNotFoundException - if could not find a class- Since:
- 2.4
getHelpIds
public static Set<String> getHelpIds()
Copyright © 2008-2011 CodeLutin. All Rights Reserved.