Class TldRuleSet.Variable

  • Enclosing class:
    TldRuleSet

    public static class TldRuleSet.Variable
    extends java.lang.Object
    Intermediate 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
      void setClassName​(java.lang.String className)
      Sets the variable type class name.
      void setDeclare​(boolean declare)
      Sets whether to declare the variable.
      void setNameFromAttribute​(java.lang.String nameFromAttribute)
      Sets the attribute name from which to derive the variable name.
      void setNameGiven​(java.lang.String nameGiven)
      Sets the explicit variable name.
      void setScope​(java.lang.String scopeName)
      Sets the variable scope.
      TagVariableInfo toTagVariableInfo()
      Converts this intermediate variable representation to a TagVariableInfo.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Variable

        public Variable()
        Constructs a new Variable.
    • 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