Class Node.JspAttribute

java.lang.Object
org.apache.jasper.compiler.Node.JspAttribute
Enclosing class:
Node

public static class Node.JspAttribute extends 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 Details

    • qName

      private String qName
    • uri

      private String uri
    • localName

      private String localName
    • value

      private String value
    • expression

      private boolean expression
    • dynamic

      private boolean dynamic
    • el

      private ELNode.Nodes el
    • expectedType

      private String expectedType
    • expectedReturnType

      private String expectedReturnType
    • expectedParamTypes

      private String[] expectedParamTypes
    • namedAttribute

      private boolean namedAttribute
    • namedAttributeNode

      private Node.NamedAttribute namedAttributeNode
  • Constructor Details

  • Method Details

    • getName

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

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

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

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

      public void setValue(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
    • getEL

      public ELNode.Nodes getEL()
    • getExpectedType

      public String getExpectedType()
    • getExpectedReturnType

      public String getExpectedReturnType()
    • getExpectedParamTypes

      public String[] getExpectedParamTypes()