|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jgit.lib.AnyObjectId org.eclipse.jgit.lib.ObjectId org.eclipse.jgit.lib.ObjectIdOwnerMap.Entry org.eclipse.jgit.revwalk.RevObject org.eclipse.jgit.revwalk.RevTag
public class RevTag
An annotated tag.
Constructor Summary | |
---|---|
protected |
RevTag(AnyObjectId id)
Create a new tag reference. |
Method Summary | |
---|---|
String |
getFullMessage()
Parse the complete tag message and decode it to a string. |
RevObject |
getObject()
Get a reference to the object this tag was placed on. |
String |
getShortMessage()
Parse the tag message and return the first "line" of it. |
PersonIdent |
getTaggerIdent()
Parse the tagger identity from the raw buffer. |
String |
getTagName()
Get the name of this tag, from the tag header. |
int |
getType()
Get Git object type. |
static RevTag |
parse(byte[] raw)
Parse an annotated tag from its canonical format. |
static RevTag |
parse(RevWalk rw,
byte[] raw)
Parse an annotated tag from its canonical format. |
Methods inherited from class org.eclipse.jgit.revwalk.RevObject |
---|
add, add, appendCoreFlags, getId, has, hasAll, hasAny, remove, remove, toString |
Methods inherited from class org.eclipse.jgit.lib.ObjectId |
---|
equals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroId |
Methods inherited from class org.eclipse.jgit.lib.AnyObjectId |
---|
abbreviate, compareTo, compareTo, compareTo, compareTo, copy, copyRawTo, copyRawTo, copyRawTo, copyRawTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, equals, equals, equals, getByte, getFirstByte, getName, hashCode, name, startsWith |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected RevTag(AnyObjectId id)
id
- object name for the tag.Method Detail |
---|
public static RevTag parse(byte[] raw) throws CorruptObjectException
RevWalk.parseTag(AnyObjectId)
to obtain
a RevTag from an existing repository.
raw
- the canonical formatted tag to be parsed.
CorruptObjectException
- the tag contains a malformed header that cannot be handled.public static RevTag parse(RevWalk rw, byte[] raw) throws CorruptObjectException
rw
- the revision pool to allocate the tag within. The tag's object
pointer will be obtained from this pool.raw
- the canonical formatted tag to be parsed.
CorruptObjectException
- the tag contains a malformed header that cannot be handled.public final int getType()
RevObject
Constants
.
getType
in class RevObject
public final PersonIdent getTaggerIdent()
This method parses and returns the content of the tagger line, after taking the tag's character set into account and decoding the tagger name and email address. This method is fairly expensive and produces a new PersonIdent instance on each invocation. Callers should invoke this method only if they are certain they will be outputting the result, and should cache the return value for as long as necessary to use all information from it.
public final String getFullMessage()
This method parses and returns the message portion of the tag buffer, after taking the tag's character set into account and decoding the buffer using that character set. This method is a fairly expensive operation and produces a new string on each invocation.
public final String getShortMessage()
The first line is everything up to the first pair of LFs. This is the "oneline" format, suitable for output in a single line display.
This method parses and returns the message portion of the tag buffer, after taking the tag's character set into account and decoding the buffer using that character set. This method is a fairly expensive operation and produces a new string on each invocation.
public final RevObject getObject()
public final String getTagName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |