Name
TagVariableInfo
Synopsis
The
TagVariableInfo
instance represents a variable
declaration in the TLD. The container creates instances of this class
during the translation phase, and it’s used to
generate variable declarations in the JSP page implementation class.
Synopsis
|
Class name: |
|
|
Extends: |
None |
|
Implements: |
None |
|
Implemented by: |
Internal container-dependent class. Most containers use the reference implementation of the class (developed in the Apache Jakarta project). |
Constructor
-
public TagVariableInfo(String nameGiven, String nameFromAttribute, String className, boolean declare, int scope)Creates a new instance with the specified values.
Methods
-
public String getClassName( ) Returns the declared class name.
-
public boolen getDeclare( ) Returns
trueif the variable is defined as one to be declared.-
public String getNameFromAttribute( ) Returns the name of the attribute declared to hold the name of the variable at translation time.
-
public String getNameGiven( ) Returns the declared variable name.
-
public int getScope( ) Returns the declared scope, as one of
VariableInfo.AT_BEGIN,VariableInfo.AT_END, orVariableInfo.NESTED.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access