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).
- Author:
- Kin-man Chung, Jan Luehe, Shawn Bayern, Mark Roth
- 
Method SummaryModifier and TypeMethodDescriptiongetEL()getName()Only makes sense if namedAttribute is true.String[]getURI()getValue()Only makes sense if namedAttribute is false.booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidvalidateEL(ExpressionFactory ef, ELContext ctx) Allow node to validate itself.
- 
Method Details- 
validateELAllow node to validate itself.- Parameters:
- ef- The expression factory to use to evaluate any EL
- ctx- The context to use to evaluate any EL
- Throws:
- ELException- If validation fails
 
- 
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
 
- 
getTagAttributeInfo
- 
isDeferredInputpublic boolean isDeferredInput()- Returns:
- return true if there's TagAttributeInfo meaning we need to assign a ValueExpression
 
- 
isDeferredMethodInputpublic boolean isDeferredMethodInput()- Returns:
- return true if there's TagAttributeInfo meaning we need to assign a MethodExpression
 
- 
getExpectedTypeName
- 
getParameterTypeNames
- 
getValueOnly 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)
 
- 
getNamedAttributeNodeOnly makes sense if namedAttribute is true.- Returns:
- the nodes that evaluate to the body of this attribute.
 
- 
isExpressionpublic boolean isExpression()- Returns:
- true if the value represents a traditional rtexprvalue
 
- 
isNamedAttributepublic boolean isNamedAttribute()- Returns:
- true if the value represents a NamedAttribute value.
 
- 
isELInterpreterInputpublic boolean isELInterpreterInput()- Returns:
- true if the value represents an expression that should be fed to the expression interpreter false for string literals or rtexprvalues that should not be interpreted or reevaluated
 
- 
isLiteralpublic boolean isLiteral()- Returns:
- true if the value is a string literal known at translation time.
 
- 
isDynamicpublic boolean isDynamic()- Returns:
- trueif the attribute is a "dynamic" attribute of a custom tag that implements DynamicAttributes interface. That is, a random extra attribute that is not declared by the tag.
 
- 
getEL
 
-