|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.opengrok.history.Annotation
public class Annotation
Class representing file annotation, i.e., revision and author for the last modification of each line in the file.
Constructor Summary | |
---|---|
Annotation(java.lang.String filename)
|
Method Summary | |
---|---|
java.lang.String |
getAuthor(int line)
Gets the author who last modified the specified line. |
java.lang.String |
getFilename()
|
java.lang.String |
getRevision(int line)
Gets the revision for the last change to the specified line. |
int |
getWidestAuthor()
Returns the widest author name in the file (used for pretty printing). |
int |
getWidestRevision()
Returns the widest revision string in the file (used for pretty printing). |
boolean |
isEnabled(int line)
Gets the enabled state for the last change to the specified line. |
int |
size()
Returns the size of the file (number of lines). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Annotation(java.lang.String filename)
Method Detail |
---|
public java.lang.String getRevision(int line)
line
- line number (counting from 1)
public java.lang.String getAuthor(int line)
line
- line number (counting from 1)
public boolean isEnabled(int line)
line
- line number (counting from 1)
public int size()
public int getWidestRevision()
public int getWidestAuthor()
public java.lang.String getFilename()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |