net.sourceforge.pmd.jsp.ast

Class ASTAttribute

public class ASTAttribute extends SimpleNode

Constructor Summary
ASTAttribute(int id)
ASTAttribute(JspParser p, int id)
Method Summary
StringgetLocalName()
StringgetName()
StringgetNamespacePrefix()
booleanisHasNamespacePrefix()
ObjectjjtAccept(JspParserVisitor visitor, Object data)
Accept the visitor.
voidsetName(String name)
StringtoString(String prefix)

Constructor Detail

ASTAttribute

public ASTAttribute(int id)

ASTAttribute

public ASTAttribute(JspParser p, int id)

Method Detail

getLocalName

public String getLocalName()

Returns: String - The part of the name that is after the first colon (":"). If the name does not contain a colon, the full name is returned.

getName

public String getName()

Returns: Returns the name.

getNamespacePrefix

public String getNamespacePrefix()

Returns: String - the part of the name that is before the (first) colon (":")

isHasNamespacePrefix

public boolean isHasNamespacePrefix()

Returns: boolean - true if the element has a namespace-prefix, false otherwise

jjtAccept

public Object jjtAccept(JspParserVisitor visitor, Object data)
Accept the visitor. *

setName

public void setName(String name)

Parameters: name The name to set.

toString

public String toString(String prefix)