Class TldRuleSet.Variable
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.tld.TldRuleSet.Variable
-
- Enclosing class:
- TldRuleSet
public static class TldRuleSet.Variable extends java.lang.ObjectIntermediate representation of a tag variable during TLD parsing.
-
-
Constructor Summary
Constructors Constructor Description Variable()Constructs a new Variable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetClassName(java.lang.String className)Sets the variable type class name.voidsetDeclare(boolean declare)Sets whether to declare the variable.voidsetNameFromAttribute(java.lang.String nameFromAttribute)Sets the attribute name from which to derive the variable name.voidsetNameGiven(java.lang.String nameGiven)Sets the explicit variable name.voidsetScope(java.lang.String scopeName)Sets the variable scope.TagVariableInfotoTagVariableInfo()Converts this intermediate variable representation to a TagVariableInfo.
-
-
-
Method Detail
-
setNameGiven
public void setNameGiven(java.lang.String nameGiven)
Sets the explicit variable name.- Parameters:
nameGiven- the variable name
-
setNameFromAttribute
public void setNameFromAttribute(java.lang.String nameFromAttribute)
Sets the attribute name from which to derive the variable name.- Parameters:
nameFromAttribute- the attribute name
-
setClassName
public void setClassName(java.lang.String className)
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
public void setScope(java.lang.String scopeName)
Sets the variable scope.- Parameters:
scopeName- the scope name
-
toTagVariableInfo
public TagVariableInfo toTagVariableInfo()
Converts this intermediate variable representation to a TagVariableInfo.- Returns:
- the TagVariableInfo
-
-