Package net.sourceforge.pmd.lang.jsp.ast
Class ASTElement
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.impl.GenericNode<JspNode>,net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode<JspNode>,net.sourceforge.pmd.lang.ast.Node,net.sourceforge.pmd.lang.ast.TextAvailableNode,JspNode,net.sourceforge.pmd.reporting.Reportable
public final class ASTElement
extends net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<net.sourceforge.pmd.lang.jsp.ast.AbstractJspNode,JspNode>
-
Field Summary
Fields inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
idFields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR -
Method Summary
Modifier and TypeMethodDescriptionfinal <P,R> R acceptVisitor(net.sourceforge.pmd.lang.ast.AstVisitor<? super P, ? extends R> visitor, P data) protected <P,R> R acceptVisitor(JspVisitor<? super P, ? extends R> visitor, P data) getName()booleanisEmpty()booleanbooleanMethods inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
addChild, compareLocation, enlargeLeft, fitTokensToChildren, getFirstToken, getImage, getLastToken, getTextRegion, insertChild, jjtClose, jjtOpen, setFirstToken, setImage, setLastToken, toStringMethods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode
children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, remove, removeChildAtIndex, setChild, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSiblingMethods inherited from interface net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode
getFirstToken, getLastToken, tokensMethods 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, isFindBoundaryMethods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNode
getOriginalText, getText, getTextRegion
-
Method Details
-
isHasNamespacePrefix
public boolean isHasNamespacePrefix()- Returns:
- boolean - true if the element has a namespace-prefix, false otherwise
-
getNamespacePrefix
- Returns:
- String - the part of the name that is before the (first) colon (":")
-
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
-
isEmpty
public boolean isEmpty() -
isUnclosed
public boolean isUnclosed() -
acceptVisitor
-
acceptVisitor
public final <P,R> R acceptVisitor(net.sourceforge.pmd.lang.ast.AstVisitor<? super P, ? extends R> visitor, P data) - Specified by:
acceptVisitorin interfacenet.sourceforge.pmd.lang.ast.Node
-
getXPathNodeName
- Specified by:
getXPathNodeNamein interfacenet.sourceforge.pmd.lang.ast.Node
-