javax.servlet.jsp.tagext

Class 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
 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
 

Constructor Summary

VariableInfo(String varName, String className, boolean declare, int scope)
Constructor These objects can be created (at translation time) by the TagExtraInfo instances.

Method Summary

String
getClassName()
boolean
getDeclare()
int
getScope()
String
getVarName()

Field Details

AT_BEGIN

public static final int AT_BEGIN

Field Value:
1


AT_END

public static final int AT_END

Field Value:
2


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
 

Field Value:
0

Constructor Details

VariableInfo

public VariableInfo(String varName,
                    String className,
                    boolean declare,
                    int scope)
Constructor These objects can be created (at translation time) by the TagExtraInfo instances.

Parameters:
className - The name of the scripting variable
declare - If true, it is a new variable (in some languages this will require a declaration)
scope - Indication on the lexical scope of the variable

Method Details

getClassName

public String getClassName()


getDeclare

public boolean getDeclare()


getScope

public int getScope()


getVarName

public String getVarName()


Copyright © 1999-2000 The Apache Software Foundation. All Rights Reserved.