public class VariableInfo
extends java.lang.Object
<mytag:loop name='i' min='0' max='10'>
Iter: <%= i %>
</mytag:loop>
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
VariableInfo(java.lang.String varName,
java.lang.String className,
boolean declare,
int scope)
Creates information for a variable.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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"));
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 variablepublic java.lang.String getVarName()
public java.lang.String getClassName()
public boolean getDeclare()
public int getScope()