Top Description Fields Constructors Methods
org.eclipse.jgit.revwalk

public abstract Class RevObject

extends Entry
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.revwalk.RevTag, org.eclipse.jgit.revwalk.RevTree, org.eclipse.jgit.revwalk.RevBlob, org.eclipse.jgit.revwalk.RevCommit
Imports
java.io.IOException, org.eclipse.jgit.errors.IncorrectObjectTypeException, .MissingObjectException, org.eclipse.jgit.lib.AnyObjectId, .Constants, .ObjectId, .ObjectIdOwnerMap

Base object type accessed during revision walking.

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv static final int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final void
add(RevFlag
the flag to mark on this object, for later testing.
flag
)

Add a flag to this object.

public final void
add(RevFlagSet
the set of flags to mark on this object, for later testing.
set
)

Add a set of flags to this object.

protected void
appendCoreFlags(StringBuilder
buffer to append a debug description of core RevFlags onto.
s
)

Append a debug description of core RevFlags to a buffer.

public final ObjectId

Returns:

unique hash of this object.
getId
()

Get the name of this object.

public abstract int

Returns:

object type
getType
()

Get Git object type.

public final boolean

Returns:

true if the flag has been added to this object; false if not.
has
(RevFlag
the flag to test.
flag
)

Test to see if the flag has been set on this object.

public final boolean

Returns:

true if all flags of the set have been added to this object; false if some or none have been added.
hasAll
(RevFlagSet
the flags to test.
set
)

Test to see if all flags in the set have been set on this object.

public final boolean

Returns:

true if any flag in the set has been added to this object; false if not.
hasAny
(RevFlagSet
the flags to test.
set
)

Test to see if any flag in the set has been set on this object.

pack-priv abstract void
pack-priv abstract void
public final void
remove(RevFlag
the flag to remove from this object.
flag
)

Remove a flag from this object.

public final void
remove(RevFlagSet
the flag to remove from this object.
set
)

Remove a set of flags from this object.

public String
toString()

Overrides org.eclipse.jgit.lib.AnyObjectId.toString.

Returns a string representation of the object.

Field Detail

flagsback to summary
pack-priv int flags
PARSEDback to summary
pack-priv static final int PARSED

Constructor Detail

RevObjectback to summary
pack-priv RevObject(AnyObjectId name)

Method Detail

addback to summary
public final void add(RevFlag flag)

Add a flag to this object.

If the flag is already set on this object then the method has no effect.

Parameters
flag:RevFlag

the flag to mark on this object, for later testing.

addback to summary
public final void add(RevFlagSet set)

Add a set of flags to this object.

Parameters
set:RevFlagSet

the set of flags to mark on this object, for later testing.

appendCoreFlagsback to summary
protected void appendCoreFlags(StringBuilder s)

Append a debug description of core RevFlags to a buffer.

Parameters
s:StringBuilder

buffer to append a debug description of core RevFlags onto.

getIdback to summary
public final ObjectId getId()

Get the name of this object.

Returns:ObjectId

unique hash of this object.

getTypeback to summary
public abstract int getType()

Get Git object type. See org.eclipse.jgit.lib.Constants.

Returns:int

object type

hasback to summary
public final boolean has(RevFlag flag)

Test to see if the flag has been set on this object.

Parameters
flag:RevFlag

the flag to test.

Returns:boolean

true if the flag has been added to this object; false if not.

hasAllback to summary
public final boolean hasAll(RevFlagSet set)

Test to see if all flags in the set have been set on this object.

Parameters
set:RevFlagSet

the flags to test.

Returns:boolean

true if all flags of the set have been added to this object; false if some or none have been added.

hasAnyback to summary
public final boolean hasAny(RevFlagSet set)

Test to see if any flag in the set has been set on this object.

Parameters
set:RevFlagSet

the flags to test.

Returns:boolean

true if any flag in the set has been added to this object; false if not.

parseBodyback to summary
pack-priv abstract void parseBody(RevWalk walk) throws MissingObjectException, IncorrectObjectTypeException, IOException
parseHeadersback to summary
pack-priv abstract void parseHeaders(RevWalk walk) throws MissingObjectException, IncorrectObjectTypeException, IOException
removeback to summary
public final void remove(RevFlag flag)

Remove a flag from this object.

If the flag is not set on this object then the method has no effect.

Parameters
flag:RevFlag

the flag to remove from this object.

removeback to summary
public final void remove(RevFlagSet set)

Remove a set of flags from this object.

Parameters
set:RevFlagSet

the flag to remove from this object.

toStringback to summary
public String toString()

Overrides org.eclipse.jgit.lib.AnyObjectId.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override