Class Node.JspAttribute

  • Enclosing class:
    Node

    public static class Node.JspAttribute
    extends java.lang.Object
    Represents attributes that can be request time expressions. Can either be a plain attribute, an attribute that represents a request time expression value, or a named attribute (specified using the jsp:attribute standard action).
    • Field Detail

      • qName

        private java.lang.String qName
      • uri

        private java.lang.String uri
      • localName

        private java.lang.String localName
      • value

        private java.lang.String value
      • expression

        private boolean expression
      • dynamic

        private boolean dynamic
      • expectedType

        private java.lang.String expectedType
      • expectedReturnType

        private java.lang.String expectedReturnType
      • expectedParamTypes

        private java.lang.String[] expectedParamTypes
      • namedAttribute

        private boolean namedAttribute
    • Constructor Detail

      • JspAttribute

        JspAttribute​(java.lang.String qName,
                     java.lang.String uri,
                     java.lang.String localName,
                     java.lang.String value,
                     boolean expr,
                     ELNode.Nodes el,
                     boolean dyn)
      • JspAttribute

        JspAttribute​(java.lang.String qName,
                     java.lang.String uri,
                     java.lang.String localName,
                     java.lang.String value,
                     ELNode.Nodes el,
                     java.lang.String expectedType,
                     java.lang.String expectedReturnType,
                     java.lang.String[] expectedParamTypes)
      • JspAttribute

        JspAttribute​(Node.NamedAttribute na,
                     boolean dyn)
        Use this constructor if the JspAttribute represents a named attribute. In this case, we have to store the nodes of the body of the attribute.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        The name of the attribute
      • getLocalName

        public java.lang.String getLocalName()
        Returns:
        The local name of the attribute
      • getURI

        public java.lang.String getURI()
        Returns:
        The namespace of the attribute, or null if in the default namespace
      • getValue

        public java.lang.String getValue()
        Only makes sense if namedAttribute is false.
        Returns:
        the value for the attribute, or the expression string (stripped of "<%=", "%>", "%=", or "%" but containing "${" and "}" for EL expressions)
      • setValue

        public void setValue​(java.lang.String val)
      • getNamedAttributeNode

        public Node.NamedAttribute getNamedAttributeNode()
        Only makes sense if namedAttribute is true.
        Returns:
        the nodes that evaluate to the body of this attribute.
      • isExpression

        public boolean isExpression()
        Returns:
        true if the value represents a traditional rtexprvalue
      • isNamedAttribute

        public boolean isNamedAttribute()
        Returns:
        true if the value represents a NamedAttribute value.
      • isELInterpreterInput

        public boolean isELInterpreterInput()
        Returns:
        true if the value represents an expression that should be fed to the expression interpreter
      • isLiteral

        public boolean isLiteral()
        Returns:
        true if the value is a string literal known at translation time.
      • isDynamic

        public boolean isDynamic()
        XXX
      • getExpectedType

        public java.lang.String getExpectedType()
      • getExpectedReturnType

        public java.lang.String getExpectedReturnType()
      • getExpectedParamTypes

        public java.lang.String[] getExpectedParamTypes()