Class AbstractNodeWithTextCoordinates<B extends AbstractNodeWithTextCoordinates<B,T>,T extends GenericNode<T>>
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.impl.AbstractNode<B,T>
-
- net.sourceforge.pmd.lang.ast.impl.AbstractNodeWithTextCoordinates<B,T>
-
- All Implemented Interfaces:
GenericNode<T>
,Node
public abstract class AbstractNodeWithTextCoordinates<B extends AbstractNodeWithTextCoordinates<B,T>,T extends GenericNode<T>> extends AbstractNode<B,T>
Base class for implementations that need fields to store text coordinates.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
beginColumn
protected int
beginLine
protected int
endColumn
protected int
endLine
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractNodeWithTextCoordinates()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBeginColumn()
int
getBeginLine()
int
getEndColumn()
int
getEndLine()
protected void
setCoords(int bline, int bcol, int eline, int ecol)
-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode
addChild, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, insertChild, remove, removeChildAtIndex, setChild, setParent, toString
-
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, getFirstChild, getLastChild, getNextSibling, getNthParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAstInfo, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getParentsOfType, getRoot, getXPathAttributesIterator, getXPathNodeName, hasDescendantOfType, hasImageEqualTo, isFindBoundary
-
-