org.pegdown.ast
Class AbstractNode

java.lang.Object
  extended by org.pegdown.ast.AbstractNode
All Implemented Interfaces:
org.parboiled.trees.GraphNode<Node>, Node
Direct Known Subclasses:
SimpleNode, SuperNode, TextNode, ValidEmphOrStrongCloseNode

public abstract class AbstractNode
extends java.lang.Object
implements Node


Constructor Summary
AbstractNode()
           
 
Method Summary
 int getEndIndex()
           
 int getStartIndex()
           
 void mapIndices(int[] ixMap)
           
 void setEndIndex(int endIndex)
           
 void setStartIndex(int startIndex)
           
 void shiftIndices(int delta)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.pegdown.ast.Node
accept
 
Methods inherited from interface org.parboiled.trees.GraphNode
getChildren
 

Constructor Detail

AbstractNode

public AbstractNode()
Method Detail

getStartIndex

public int getStartIndex()
Specified by:
getStartIndex in interface Node
Returns:
the index of the first character in the underlying buffer that is covered by this node

getEndIndex

public int getEndIndex()
Specified by:
getEndIndex in interface Node
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:
toString in class java.lang.Object