Package org.apache.jasper.compiler
Class Node.JspAttribute
- java.lang.Object
-
- org.apache.jasper.compiler.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 Summary
Fields Modifier and Type Field Description private boolean
dynamic
private ELNode.Nodes
el
private java.lang.String[]
expectedParamTypes
private java.lang.String
expectedReturnType
private java.lang.String
expectedType
private boolean
expression
private java.lang.String
localName
private boolean
namedAttribute
private Node.NamedAttribute
namedAttributeNode
private java.lang.String
qName
private java.lang.String
uri
private java.lang.String
value
-
Constructor Summary
Constructors Constructor Description 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(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(Node.NamedAttribute na, boolean dyn)
Use this constructor if the JspAttribute represents a named attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ELNode.Nodes
getEL()
java.lang.String[]
getExpectedParamTypes()
java.lang.String
getExpectedReturnType()
java.lang.String
getExpectedType()
java.lang.String
getLocalName()
java.lang.String
getName()
Node.NamedAttribute
getNamedAttributeNode()
Only makes sense if namedAttribute is true.java.lang.String
getURI()
java.lang.String
getValue()
Only makes sense if namedAttribute is false.boolean
isDynamic()
XXXboolean
isELInterpreterInput()
boolean
isExpression()
boolean
isLiteral()
boolean
isNamedAttribute()
void
setValue(java.lang.String val)
-
-
-
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
-
el
private ELNode.Nodes el
-
expectedType
private java.lang.String expectedType
-
expectedReturnType
private java.lang.String expectedReturnType
-
expectedParamTypes
private java.lang.String[] expectedParamTypes
-
namedAttribute
private boolean namedAttribute
-
namedAttributeNode
private Node.NamedAttribute namedAttributeNode
-
-
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
-
getEL
public ELNode.Nodes getEL()
-
getExpectedType
public java.lang.String getExpectedType()
-
getExpectedReturnType
public java.lang.String getExpectedReturnType()
-
getExpectedParamTypes
public java.lang.String[] getExpectedParamTypes()
-
-