org.apache.jasper.compiler

Class Node.JspAttribute

Enclosing Class:
org.apache.jasper.compiler.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).

Method Summary

ELNode.Nodes
getEL()
String
getLocalName()
String
getName()
Node.NamedAttribute
getNamedAttributeNode()
Only makes sense if namedAttribute is true.
String
getURI()
String
getValue()
Only makes sense if namedAttribute is false.
boolean
isDynamic()
XXX
boolean
isELInterpreterInput()
boolean
isExpression()
boolean
isLiteral()
boolean
isNamedAttribute()

Method Details

getEL

public ELNode.Nodes getEL()

getLocalName

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

getName

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

getNamedAttributeNode

public Node.NamedAttribute getNamedAttributeNode()
Only makes sense if namedAttribute is true.
Returns:
the nodes that evaluate to the body of this 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 "<%=", "%>", "%=", or "%" but containing "${" and "}" for EL expressions)

isDynamic

public boolean isDynamic()
XXX

isELInterpreterInput

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

isExpression

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

isLiteral

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

isNamedAttribute

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

Copyright B) 2000-2004 Apache Software Foundation. All Rights Reserved.