Class Node.JspAttribute
java.lang.Object
org.apache.jasper.compiler.Node.JspAttribute
- Enclosing class:
Node
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
FieldsModifier and TypeFieldDescriptionprivate booleanprivate ELNode.Nodesprivate String[]private Stringprivate Stringprivate booleanprivate Stringprivate booleanprivate Node.NamedAttributeprivate Stringprivate Stringprivate String -
Constructor Summary
ConstructorsConstructorDescriptionJspAttribute(String qName, String uri, String localName, String value, boolean expr, ELNode.Nodes el, boolean dyn) JspAttribute(String qName, String uri, String localName, String value, ELNode.Nodes el, String expectedType, String expectedReturnType, String[] expectedParamTypes) JspAttribute(Node.NamedAttribute na, boolean dyn) Use this constructor if the JspAttribute represents a named attribute. -
Method Summary
-
Field Details
-
qName
-
uri
-
localName
-
value
-
expression
private boolean expression -
dynamic
private boolean dynamic -
el
-
expectedType
-
expectedReturnType
-
expectedParamTypes
-
namedAttribute
private boolean namedAttribute -
namedAttributeNode
-
-
Constructor Details
-
JspAttribute
JspAttribute(String qName, String uri, String localName, String value, boolean expr, ELNode.Nodes el, boolean dyn) -
JspAttribute
-
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 Details
-
getName
- Returns:
- The name of the attribute
-
getLocalName
- Returns:
- The local name of the attribute
-
getURI
- Returns:
- The namespace of the attribute, or null if in the default namespace
-
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
-
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
-
getExpectedType
-
getExpectedReturnType
-
getExpectedParamTypes
-