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.
Scripting variables generated by a custom action have an associated scope of either AT_BEGIN, NESTED, or AT_END.
Modifier and Type | Field and Description |
---|---|
static int |
AT_BEGIN
Scope information that scripting variable is visible after start tag.
|
static int |
AT_END
Scope information that scripting variable is visible after end tag.
|
static int |
NESTED
Scope information that scripting variable is visible only within
the start/end tags.
|
Constructor and Description |
---|
VariableInfo(java.lang.String varName,
java.lang.String className,
boolean declare,
int scope)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName()
Get the ClassName value.
|
boolean |
getDeclare()
Get the Declare value.
|
int |
getScope()
Get the Scope value.
|
java.lang.String |
getVarName()
Get the VarName value.
|
public static final int NESTED
http://java.sun.com/j2ee/1.4/docs/api/constant-values.html#javax.servlet.jsp.tagext.VariableInfo.NESTED Constant Field Values}
,
Constant Field Valuespublic static final int AT_BEGIN
http://java.sun.com/j2ee/1.4/docs/api/constant-values.html#javax.servlet.jsp.tagext.VariableInfo.AT_BEGIN Constant Field Values}
,
Constant Field Valuespublic static final int AT_END
http://java.sun.com/j2ee/1.4/docs/api/constant-values.html#javax.servlet.jsp.tagext.VariableInfo.AT_END Constant Field Values}
,
Constant Field Valuespublic VariableInfo(java.lang.String varName, java.lang.String className, boolean declare, int scope)
varName
- The name of the scripting variableclassName
- The type of this variabledeclare
- If true, it is a new variable
(in some languages this will require a declaration) scopepublic java.lang.String getVarName()
public java.lang.String getClassName()
public boolean getDeclare()
public int getScope()