public class BlameCallbackImpl extends java.lang.Object implements BlameCallback, BlameCallback2
BlameCallback interface.| Modifier and Type | Class and Description |
|---|---|
static class |
BlameCallbackImpl.BlameLine
Class represeting one line of the lines, i.e.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<BlameCallbackImpl.BlameLine> |
lines
list of blame records (lines)
|
| Constructor and Description |
|---|
BlameCallbackImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBlameLine(BlameCallbackImpl.BlameLine blameLine)
Append the given blame info to the list
|
private java.lang.String |
getAuthor(java.lang.String author,
java.lang.String merged_author) |
BlameCallbackImpl.BlameLine |
getBlameLine(int i)
Retrieve blame information for specified line number
|
private java.util.Date |
getDate(java.util.Date date,
java.util.Date merged_date) |
private long |
getRevision(long revision,
long merged_revision) |
int |
numberOfLines()
Retrieve the number of line of blame information
|
void |
singleLine(java.util.Date date,
long revision,
java.lang.String author,
java.util.Date merged_date,
long merged_revision,
java.lang.String merged_author,
java.lang.String merged_path,
java.lang.String line)
the method will be called for every line in a file.
|
void |
singleLine(java.util.Date changed,
long revision,
java.lang.String author,
java.lang.String line)
the method will be called for every line in a file.
|
private java.util.List<BlameCallbackImpl.BlameLine> lines
public void singleLine(java.util.Date changed,
long revision,
java.lang.String author,
java.lang.String line)
BlameCallbacksingleLine in interface BlameCallbackchanged - the date of the last change.revision - the revision of the last change.author - the author of the last change.line - the line in the filepublic void singleLine(java.util.Date date,
long revision,
java.lang.String author,
java.util.Date merged_date,
long merged_revision,
java.lang.String merged_author,
java.lang.String merged_path,
java.lang.String line)
BlameCallback2singleLine in interface BlameCallback2date - the date of the last change.revision - the revision of the last change.author - the author of the last change.merged_date - the date of the last merged change.merged_revision - the revision of the last merged change.merged_author - the author of the last merged change.merged_path - the path of the last merged change.line - the line in the fileprivate java.util.Date getDate(java.util.Date date,
java.util.Date merged_date)
private java.lang.String getAuthor(java.lang.String author,
java.lang.String merged_author)
private long getRevision(long revision,
long merged_revision)
public int numberOfLines()
public BlameCallbackImpl.BlameLine getBlameLine(int i)
i - the line number to retrieve blame information aboutprotected void addBlameLine(BlameCallbackImpl.BlameLine blameLine)
blameLine -