public class TagVariableInfo
extends java.lang.Object
<mytag:loop name='i' min='0' max='10'>
Iter: <%= i %>
</mytag:loop>
Constructor and Description |
---|
TagVariableInfo(java.lang.String nameGiven,
java.lang.String nameFromAttribute,
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.
|
java.lang.String |
getNameFromAttribute()
Returns the attribute name that will contain the variable name
|
java.lang.String |
getNameGiven()
Returns the variable name, if it's static.
|
int |
getScope()
Returns the variable's scope.
|
public TagVariableInfo(java.lang.String nameGiven, java.lang.String nameFromAttribute, java.lang.String className, boolean declare, int scope)
nameGiven
- name of the variablenameFromAttribute
- 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 getNameGiven()
public java.lang.String getNameFromAttribute()
public java.lang.String getClassName()
public boolean getDeclare()
public int getScope()