|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.VariableInfo
public class VariableInfo
TagExtraInfo classes generate VariableInfo objects to create runtime variables available to the tags.
For example, a NESTED variable could be used like:
<mytag:loop name='i' min='0' max='10'>
Iter: <%= i %>
</mytag:loop>
Field Summary | |
---|---|
static int |
AT_BEGIN
Constant for variables initialized at the beginning of a tag. |
static int |
AT_END
Constant for variables initialized at the end of a tag. |
static int |
NESTED
Constant for nested scope. |
Constructor Summary | |
---|---|
VariableInfo(java.lang.String varName,
java.lang.String className,
boolean declare,
int scope)
Creates information for a variable. |
Method Summary | |
---|---|
java.lang.String |
getClassName()
Returns the variable's Java class. |
boolean |
getDeclare()
True if the variable should be declared. |
int |
getScope()
Returns the variable's scope. |
java.lang.String |
getVarName()
Returns the variable name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NESTED
tag1.doInitBody();
do {
int foo = Integer.intValue(pageContext.getAttribute("foo"));
...
} while (tag1.doAfterBody() == EVAL_BODY_TAG)
public static final int AT_BEGIN
int _tmp = tag1.doStartTag();
int foo = Integer.intValue(pageContext.getAttribute("foo"));
if (_tmp == EVAL_BODY_INCLUDE) {
...
}
public static final int AT_END
int _tmp = tag1.doStartTag();
if (_tmp == EVAL_BODY_INCLUDE) {
...
}
tag1.doEndTag();
int foo = Integer.intValue(pageContext.getAttribute("foo"));
Constructor Detail |
---|
public VariableInfo(java.lang.String varName, java.lang.String className, boolean declare, int scope)
varName
- name of the variableclassName
- the java classname of the variabledeclare
- true if the variable should be declaredscope
- the scope of the variableMethod Detail |
---|
public java.lang.String getVarName()
public java.lang.String getClassName()
public boolean getDeclare()
public int getScope()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |