javax.servlet.jsp.tagext
Class VariableInfo
java.lang.Object
|
+--javax.servlet.jsp.tagext.VariableInfo
- public class VariableInfo
- extends java.lang.Object
Information on the scripting variables that are created/modified by
a tag (at run-time); this information is provided by TagExtraInfo
classes and it is used by the translation phase of JSP.
Field Summary |
static int |
AT_BEGIN
|
static int |
AT_END
|
static int |
NESTED
Different types of scope for an scripting variable introduced
by this action
|
Constructor Summary |
VariableInfo(java.lang.String varName,
java.lang.String className,
boolean declare,
int scope)
Constructor
These objects can be created (at translation time) by the TagExtraInfo
instances. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NESTED
public static final int NESTED
- Different types of scope for an scripting variable introduced
by this action
NESTED ==> variable is visible only within the start/end tags
AT_BEGIN ==> variable is visible after start tag
AT_END ==> variable is visible after end tag
AT_BEGIN
public static final int AT_BEGIN
AT_END
public static final int AT_END
VariableInfo
public VariableInfo(java.lang.String varName,
java.lang.String className,
boolean declare,
int scope)
- Constructor
These objects can be created (at translation time) by the TagExtraInfo
instances.
- Parameters:
id
- The name of the scripting variableclassName
- The name of the scripting variabledeclare
- If true, it is a new variable (in some languages this will
require a declaration)scope
- Indication on the lexical scope of the variable
getVarName
public java.lang.String getVarName()
getClassName
public java.lang.String getClassName()
getDeclare
public boolean getDeclare()
getScope
public int getScope()