|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface allows the plugin author to make inqueries about the properties of the current tag, and to use Jasper resources to generate direct Java codes in place of tag handler invocations.
Method Summary | |
void |
dontUseTagPlugin()
Abandon optimization for this tag handler, and instruct Jasper to generate the tag handler calls, as usual. |
void |
generateAttribute(java.lang.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(java.lang.String id,
java.lang.String text)
Generate a declaration in the of the generated class. |
void |
generateImport(java.lang.String s)
Generate an import statement |
void |
generateJavaSource(java.lang.String s)
Generate Java source codes |
java.lang.String |
getConstantAttribute(java.lang.String attribute)
|
TagPluginContext |
getParentContext()
Get the PluginContext for the parent of this custom tag. |
java.lang.Object |
getPluginAttribute(java.lang.String attr)
Get the value of an attribute in the current tagplugin context. |
java.lang.String |
getTemporaryVariableName()
|
boolean |
isAttributeSpecified(java.lang.String attribute)
|
boolean |
isConstantAttribute(java.lang.String attribute)
|
boolean |
isScriptless()
|
void |
setPluginAttribute(java.lang.String attr,
java.lang.Object value)
Associate the attribute with a value in the current tagplugin context. |
Method Detail |
public boolean isScriptless()
public boolean isAttributeSpecified(java.lang.String attribute)
attribute
- Name of the attribute
public java.lang.String getTemporaryVariableName()
public void generateImport(java.lang.String s)
s
- Name of the import class, '*' allowed.public void generateDeclaration(java.lang.String id, java.lang.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.public void generateJavaSource(java.lang.String s)
public boolean isConstantAttribute(java.lang.String attribute)
public java.lang.String getConstantAttribute(java.lang.String attribute)
public void generateAttribute(java.lang.String attribute)
attribute
- The specified attributepublic void generateBody()
public void dontUseTagPlugin()
public TagPluginContext getParentContext()
public void setPluginAttribute(java.lang.String attr, java.lang.Object value)
public java.lang.Object getPluginAttribute(java.lang.String attr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |