Class TldRuleSet.Variable
java.lang.Object
org.apache.tomcat.util.descriptor.tld.TldRuleSet.Variable
- Enclosing class:
TldRuleSet
Intermediate representation of a tag variable during TLD parsing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetClassName(String className) Sets the variable type class name.voidsetDeclare(boolean declare) Sets whether to declare the variable.voidsetNameFromAttribute(String nameFromAttribute) Sets the attribute name from which to derive the variable name.voidsetNameGiven(String nameGiven) Sets the explicit variable name.voidSets the variable scope.Converts this intermediate variable representation to a TagVariableInfo.
-
Constructor Details
-
Variable
public Variable()Constructs a new Variable.
-
-
Method Details
-
setNameGiven
Sets the explicit variable name.- Parameters:
nameGiven- the variable name
-
setNameFromAttribute
Sets the attribute name from which to derive the variable name.- Parameters:
nameFromAttribute- the attribute name
-
setClassName
Sets the variable type class name.- Parameters:
className- the class name
-
setDeclare
public void setDeclare(boolean declare) Sets whether to declare the variable.- Parameters:
declare- true to declare
-
setScope
Sets the variable scope.- Parameters:
scopeName- the scope name
-
toTagVariableInfo
Converts this intermediate variable representation to a TagVariableInfo.- Returns:
- the TagVariableInfo
-