public class HtmlTaglib12Generator extends AbstractGenerator
AbstractGenerator.CodeWriter| Modifier and Type | Field and Description |
|---|---|
protected ComponentBean |
component |
protected FacesConfigBean |
configBean |
protected PropertyManager |
propManager |
protected RendererBean |
renderer |
protected String |
tagClassName |
protected AbstractGenerator.CodeWriter |
writer |
JAVA_KEYWORDS, TYPE_DEFAULTS| Constructor and Description |
|---|
HtmlTaglib12Generator(PropertyManager propManager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addImport(String fullyQualClassName) |
void |
generate(FacesConfigBean configBean)
Perform whatever generation tasks are necessary using
the provided
FacesConfigBean as the model. |
protected static boolean |
isValueHolder(String componentClass) |
static void |
main(String[] args) |
protected void |
setTldGenerator(JspTLDGenerator tldGenerator)
Set the
JspTLDGenerator to be used by the taglib
generator. |
protected void |
tagHanderSetPropertiesMethod() |
protected void |
tagHandlerClassicSupportMethods()
Generate Tag Handler support methods
|
protected void |
tagHandlerGeneralMethods()
Generate Tag Handler general methods from component properties and
renderer attributes.
|
protected void |
tagHandlerPrefix()
Generate copyright, package declaration, import statements, class
declaration.
|
protected void |
tagHandlerReleaseMethod() |
protected void |
tagHandlerSetterMethods()
Generate Tag Handler setter methods from component properties and
renderer attributes.
|
protected void |
tagHandlerSuffix()
Generate remaining Tag Handler methods
|
protected void |
writeClassDeclaration() |
protected void |
writeClassDocumentation() |
protected void |
writeCopyright() |
protected void |
writeImports() |
protected void |
writePackage() |
protected void |
writeSuperTagCallBody(String method,
boolean hasReturn)
Convience method to generate code for a super call to
a JSP tag lifecycle method.
|
capitalize, mangle, options, primitive, shortNameprotected AbstractGenerator.CodeWriter writer
protected ComponentBean component
protected RendererBean renderer
protected String tagClassName
protected FacesConfigBean configBean
protected PropertyManager propManager
public HtmlTaglib12Generator(PropertyManager propManager)
public void generate(FacesConfigBean configBean)
GeneratorPerform whatever generation tasks are necessary using
the provided FacesConfigBean as the model.
configBean - model datapublic static void main(String[] args)
protected void setTldGenerator(JspTLDGenerator tldGenerator)
Set the JspTLDGenerator to be used by the taglib
generator.
tldGenerator - JspTLDGenerator instanceprotected void addImport(String fullyQualClassName)
protected void tagHandlerPrefix()
throws Exception
Exceptionprotected void tagHandlerSetterMethods()
throws Exception
Exceptionprotected void tagHanderSetPropertiesMethod()
throws Exception
Exceptionprotected void tagHandlerGeneralMethods()
throws Exception
Exceptionprotected static boolean isValueHolder(String componentClass)
protected void tagHandlerClassicSupportMethods()
throws Exception
Exceptionprotected void writeSuperTagCallBody(String method, boolean hasReturn) throws IOException
Convience method to generate code for a super call to a JSP tag lifecycle method.
method - JSP tag lifecycle method nameIOExceptionCopyright © 2010–2019 JBoss by Red Hat. All rights reserved.