Package net.sourceforge.pmd.lang.jsp.ast
Class ASTElement
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.impl.AbstractNode<B,N>
-
- net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<net.sourceforge.pmd.lang.jsp.ast.AbstractJspNode,JspNode>
-
- net.sourceforge.pmd.lang.jsp.ast.ASTElement
-
- All Implemented Interfaces:
GenericNode<JspNode>
,JjtreeNode<JspNode>
,Node
,TextAvailableNode
,JspNode
,Reportable
public final class ASTElement extends AbstractJjtreeNode<net.sourceforge.pmd.lang.jsp.ast.AbstractJspNode,JspNode>
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
id
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <P,R>
RacceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
protected <P,R>
RacceptVisitor(JspVisitor<? super P,? extends R> visitor, P data)
String
getLocalName()
String
getName()
String
getNamespacePrefix()
String
getXPathNodeName()
boolean
isEmpty()
boolean
isHasNamespacePrefix()
boolean
isUnclosed()
-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
addChild, compareLocation, fitTokensToChildren, getFirstToken, getImage, getLastToken, getTextRegion, insertChild, jjtClose, jjtOpen, setFirstToken, setImage, setLastToken, toString
-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode
children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, remove, removeChildAtIndex, setChild, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode
getFirstToken, getLastToken, tokens
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getUserMap, getXPathAttributesIterator, hasImageEqualTo, isFindBoundary
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNode
getOriginalText, getText, getTextRegion
-
-
-
-
Method Detail
-
isHasNamespacePrefix
public boolean isHasNamespacePrefix()
- Returns:
- boolean - true if the element has a namespace-prefix, false otherwise
-
getNamespacePrefix
public String getNamespacePrefix()
- Returns:
- String - the part of the name that is before the (first) colon (":")
-
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()
-
isEmpty
public boolean isEmpty()
-
isUnclosed
public boolean isUnclosed()
-
acceptVisitor
protected <P,R> R acceptVisitor(JspVisitor<? super P,? extends R> visitor, P data)
-
acceptVisitor
public final <P,R> R acceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
- Specified by:
acceptVisitor
in interfaceNode
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfaceNode
-
-