org.apache.jasper.compiler

Class Node.JspAttribute

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).
Method Summary
ELNode.NodesgetEL()
StringgetExpectedTypeName()
StringgetLocalName()
StringgetName()
Node.NamedAttributegetNamedAttributeNode()
Only makes sense if namedAttribute is true.
String[]getParameterTypeNames()
TagAttributeInfogetTagAttributeInfo()
StringgetURI()
StringgetValue()
Only makes sense if namedAttribute is false.
booleanisDeferredInput()
booleanisDeferredMethodInput()
booleanisDynamic()
XXX
booleanisELInterpreterInput()
booleanisExpression()
booleanisLiteral()
booleanisNamedAttribute()
voidvalidateEL(ExpressionFactory ef, ELContext ctx)
Allow node to validate itself

Method Detail

getEL

public ELNode.Nodes getEL()

getExpectedTypeName

public String getExpectedTypeName()

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.

getParameterTypeNames

public String[] getParameterTypeNames()

getTagAttributeInfo

public TagAttributeInfo getTagAttributeInfo()

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)

isDeferredInput

public boolean isDeferredInput()

Returns: return true if there's TagAttributeInfo meaning we need to assign a ValueExpression

isDeferredMethodInput

public boolean isDeferredMethodInput()

Returns: return true if there's TagAttributeInfo meaning we need to assign a MethodExpression

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 false for string literals or rtexprvalues that should not be interpreted or reevaluated

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.

validateEL

public void validateEL(ExpressionFactory ef, ELContext ctx)
Allow node to validate itself

Parameters: ef ctx

Throws: ELException

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.