public class BlameCallbackImpl extends 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.
|
Constructor and Description |
---|
BlameCallbackImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addBlameLine(BlameCallbackImpl.BlameLine blameLine)
Append the given blame info to the list
|
BlameCallbackImpl.BlameLine |
getBlameLine(int i)
Retrieve blame information for specified line number
|
int |
numberOfLines()
Retrieve the number of line of blame information
|
void |
singleLine(Date date,
long revision,
String author,
Date merged_date,
long merged_revision,
String merged_author,
String merged_path,
String line)
the method will be called for every line in a file.
|
void |
singleLine(Date changed,
long revision,
String author,
String line)
the method will be called for every line in a file.
|
public void singleLine(Date changed, long revision, String author, String line)
BlameCallback
singleLine
in interface BlameCallback
changed
- 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(Date date, long revision, String author, Date merged_date, long merged_revision, String merged_author, String merged_path, String line)
BlameCallback2
singleLine
in interface BlameCallback2
date
- 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 filepublic int numberOfLines()
public BlameCallbackImpl.BlameLine getBlameLine(int i)
i
- the line number to retrieve blame information aboutprotected void addBlameLine(BlameCallbackImpl.BlameLine blameLine)
blameLine
- Copyright © 2019. All rights reserved.