public class LineFragmentImpl extends java.lang.Object implements LineFragment
Constructor and Description |
---|
LineFragmentImpl(int startLine1,
int endLine1,
int startLine2,
int endLine2,
int startOffset1,
int endOffset1,
int startOffset2,
int endOffset2) |
LineFragmentImpl(int startLine1,
int endLine1,
int startLine2,
int endLine2,
int startOffset1,
int endOffset1,
int startOffset2,
int endOffset2,
java.util.List<DiffFragment> innerFragments) |
LineFragmentImpl(LineFragment fragment,
java.util.List<DiffFragment> fragments) |
Modifier and Type | Method and Description |
---|---|
int |
getEndLine1() |
int |
getEndLine2() |
int |
getEndOffset1() |
int |
getEndOffset2() |
java.util.List<DiffFragment> |
getInnerFragments()
High-granularity changes inside line fragment (ex: detected by ByWord)
Offsets of inner changes are relative to the start of LineFragment.
|
int |
getStartLine1() |
int |
getStartLine2() |
int |
getStartOffset1() |
int |
getStartOffset2() |
java.lang.String |
toString() |
public LineFragmentImpl(int startLine1, int endLine1, int startLine2, int endLine2, int startOffset1, int endOffset1, int startOffset2, int endOffset2)
public LineFragmentImpl(LineFragment fragment, java.util.List<DiffFragment> fragments)
public LineFragmentImpl(int startLine1, int endLine1, int startLine2, int endLine2, int startOffset1, int endOffset1, int startOffset2, int endOffset2, java.util.List<DiffFragment> innerFragments)
public int getStartLine1()
getStartLine1
in interface LineFragment
public int getEndLine1()
getEndLine1
in interface LineFragment
public int getStartLine2()
getStartLine2
in interface LineFragment
public int getEndLine2()
getEndLine2
in interface LineFragment
public int getStartOffset1()
getStartOffset1
in interface DiffFragment
public int getEndOffset1()
getEndOffset1
in interface DiffFragment
public int getStartOffset2()
getStartOffset2
in interface DiffFragment
public int getEndOffset2()
getEndOffset2
in interface DiffFragment
public java.util.List<DiffFragment> getInnerFragments()
LineFragment
getInnerFragments
in interface LineFragment
public java.lang.String toString()
toString
in class java.lang.Object