Package org.pegdown.ast
Class AbstractNode
- java.lang.Object
-
- org.pegdown.ast.AbstractNode
-
- Direct Known Subclasses:
SimpleNode,SuperNode,TextNode,ValidEmphOrStrongCloseNode
public abstract class AbstractNode extends java.lang.Object implements Node
-
-
Constructor Summary
Constructors Constructor Description AbstractNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEndIndex()intgetStartIndex()voidmapIndices(int[] ixMap)voidsetEndIndex(int endIndex)voidsetStartIndex(int startIndex)voidshiftIndices(int delta)java.lang.StringtoString()
-
-
-
Method Detail
-
getStartIndex
public int getStartIndex()
- Specified by:
getStartIndexin interfaceNode- Returns:
- the index of the first character in the underlying buffer that is covered by this node
-
getEndIndex
public int getEndIndex()
- Specified by:
getEndIndexin interfaceNode- Returns:
- the index of the character after the last one in the underlying buffer that is covered by this node
-
setStartIndex
public void setStartIndex(int startIndex)
-
setEndIndex
public void setEndIndex(int endIndex)
-
shiftIndices
public void shiftIndices(int delta)
-
mapIndices
public void mapIndices(int[] ixMap)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-