org.apache.jasper.compiler.tagplugin
public interface TagPluginContext
Method Summary | |
---|---|
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)
Get the value of an attribute in the current tagplugin context. |
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.
|
Parameters: attribute The specified attribute
Parameters: 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.
Parameters: s Name of the import class, '*' allowed.
Returns: A string that is the value of a constant attribute. Undefined if the attribute is not a (translation-time) constant. null if the attribute is not specified.
Returns: The pluginContext for the parent node. null if the parent is not a custom tag, or if the pluginConxt if not available (because useTagPlugin is false, e.g).
Returns: An unique temporary variable name that the plugin can use.
Parameters: attribute Name of the attribute
Returns: true if the attribute is specified in the tag
Returns: true if the attribute is specified and its value is a translation-time constant.
Returns: true if the body of the tag is scriptless.