public interface TagPluginContext
Modifier and Type | Method and Description |
---|---|
void |
dontUseTagPlugin()
Abandon optimization for this tag handler, and instruct
Jasper to generate the tag handler calls, as usual.
|
void |
generateAttribute(String attribute)
Generate codesto evaluate value of a attribute in the custom tag
The codes is a Java expression.
|
void |
generateBody()
Generate codes for the body of the custom tag
|
void |
generateDeclaration(String id,
String text)
Generate a declaration in the of the generated class.
|
void |
generateImport(String s)
Generate an import statement
|
void |
generateJavaSource(String s)
Generate Java source codes
|
String |
getConstantAttribute(String attribute) |
TagPluginContext |
getParentContext()
Get the PluginContext for the parent of this custom tag.
|
Object |
getPluginAttribute(String attr) |
String |
getTemporaryVariableName() |
boolean |
isAttributeSpecified(String attribute) |
boolean |
isConstantAttribute(String attribute) |
boolean |
isScriptless() |
void |
setPluginAttribute(String attr,
Object value)
Associate the attribute with a value in the current tagplugin context.
|
boolean isScriptless()
boolean isAttributeSpecified(String attribute)
attribute
- Name of the attributeString getTemporaryVariableName()
void generateImport(String s)
s
- Name of the import class, '*' allowed.void generateDeclaration(String id, String text)
id
- An unique ID identifying the declaration. It is not
part of the declaration, and is used to ensure that the
declaration will only appear once. If this method is
invoked with the same id more than once in the translation
unit, only the first declaration will be taken.text
- The text of the declaration.void generateJavaSource(String s)
s
- stringboolean isConstantAttribute(String attribute)
attribute
- the attribute to checkString getConstantAttribute(String attribute)
attribute
- The specified attributevoid generateAttribute(String attribute)
attribute
- The specified attributevoid generateBody()
void dontUseTagPlugin()
TagPluginContext getParentContext()
void setPluginAttribute(String attr, Object value)
attr
- The specified attributevalue
- the valueCopyright © 2000–2020 Apache Software Foundation. All rights reserved.