org.sonar.duplications.detector.suffixtree
Class Edge

java.lang.Object
  extended by org.sonar.duplications.detector.suffixtree.Edge

public final class Edge
extends Object


Constructor Summary
Edge(int beginIndex, int endIndex, Node startNode)
           
 
Method Summary
 int getBeginIndex()
           
 int getEndIndex()
           
 Node getEndNode()
           
 int getSpan()
           
 Node getStartNode()
           
 void insert()
           
 void remove()
           
 Node splitEdge(Suffix suffix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Edge

public Edge(int beginIndex,
            int endIndex,
            Node startNode)
Method Detail

splitEdge

public Node splitEdge(Suffix suffix)

insert

public void insert()

remove

public void remove()

getSpan

public int getSpan()
Returns:
length of this edge in symbols

getBeginIndex

public int getBeginIndex()

getEndIndex

public int getEndIndex()

getStartNode

public Node getStartNode()

getEndNode

public Node getEndNode()


Copyright © 2009-2012 SonarSource. All Rights Reserved.