net.sourceforge.pmd.jsp.ast
Class ASTAttribute
java.lang.Object
net.sourceforge.pmd.ast.SimpleNode
net.sourceforge.pmd.jsp.ast.SimpleNode
net.sourceforge.pmd.jsp.ast.ASTAttribute
- All Implemented Interfaces:
- Node
public class ASTAttribute
- extends SimpleNode
Methods inherited from class net.sourceforge.pmd.ast.SimpleNode |
appendElement, asXml, containsChildOfType, dump, dumpChildren, findChildNodesWithXPath, findChildrenOfType, findChildrenOfType, findChildrenOfType, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstParentOfType, getImage, getLabel, getNthParent, getParentsOfType, getScope, hasImageEqualTo, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtSetParent, setDataFlowNode, setImage, setScope, testingOnly__setBeginColumn, testingOnly__setBeginLine |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASTAttribute
public ASTAttribute(int id)
ASTAttribute
public ASTAttribute(JspParser p,
int id)
getName
public java.lang.String getName()
- Returns:
- Returns the name.
setName
public void setName(java.lang.String name)
- Parameters:
name
- The name to set.
isHasNamespacePrefix
public boolean isHasNamespacePrefix()
- Returns:
- boolean - true if the element has a namespace-prefix, false otherwise
getNamespacePrefix
public java.lang.String getNamespacePrefix()
- Returns:
- String - the part of the name that is before the (first) colon (":")
getLocalName
public java.lang.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.
toString
public java.lang.String toString(java.lang.String prefix)
- Overrides:
toString
in class SimpleNode
jjtAccept
public java.lang.Object jjtAccept(JspParserVisitor visitor,
java.lang.Object data)
- Accept the visitor. *
- Overrides:
jjtAccept
in class SimpleNode