Package org.eclipse.jgit.revwalk
Class RevObject
java.lang.Object
org.eclipse.jgit.lib.AnyObjectId
org.eclipse.jgit.lib.ObjectId
org.eclipse.jgit.lib.ObjectIdOwnerMap.Entry
org.eclipse.jgit.revwalk.RevObject
- All Implemented Interfaces:
Serializable
,Comparable<AnyObjectId>
Base object type accessed during revision walking.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Add a flag to this object.final void
add
(RevFlagSet set) Add a set of flags to this object.protected void
Append a debug description of core RevFlags to a buffer.final ObjectId
getId()
Get the name of this object.abstract int
getType()
Get Git object type.final boolean
Test to see if the flag has been set on this object.final boolean
hasAll
(RevFlagSet set) Test to see if all flags in the set have been set on this object.final boolean
hasAny
(RevFlagSet set) Test to see if any flag in the set has been set on this object.(package private) abstract void
(package private) abstract void
parseHeaders
(RevWalk walk) final void
Remove a flag from this object.final void
remove
(RevFlagSet set) Remove a set of flags from this object.toString()
Methods inherited from class org.eclipse.jgit.lib.ObjectId
equals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroId
-
Field Details
-
PARSED
static final int PARSED- See Also:
-
flags
int flags
-
-
Constructor Details
-
RevObject
RevObject(AnyObjectId name)
-
-
Method Details
-
parseHeaders
abstract void parseHeaders(RevWalk walk) throws MissingObjectException, IncorrectObjectTypeException, IOException -
parseBody
abstract void parseBody(RevWalk walk) throws MissingObjectException, IncorrectObjectTypeException, IOException -
getType
public abstract int getType()Get Git object type. SeeConstants
.- Returns:
- object type
-
getId
Get the name of this object.- Returns:
- unique hash of this object.
-
has
Test to see if the flag has been set on this object.- Parameters:
flag
- the flag to test.- Returns:
- true if the flag has been added to this object; false if not.
-
hasAny
Test to see if any flag in the set has been set on this object.- Parameters:
set
- the flags to test.- Returns:
- true if any flag in the set has been added to this object; false if not.
-
hasAll
Test to see if all flags in the set have been set on this object.- Parameters:
set
- the flags to test.- Returns:
- true if all flags of the set have been added to this object; false if some or none have been added.
-
add
Add a flag to this object.If the flag is already set on this object then the method has no effect.
- Parameters:
flag
- the flag to mark on this object, for later testing.
-
add
Add a set of flags to this object.- Parameters:
set
- the set of flags to mark on this object, for later testing.
-
remove
Remove a flag from this object.If the flag is not set on this object then the method has no effect.
- Parameters:
flag
- the flag to remove from this object.
-
remove
Remove a set of flags from this object.- Parameters:
set
- the flag to remove from this object.
-
toString
- Overrides:
toString
in classAnyObjectId
-
appendCoreFlags
Append a debug description of core RevFlags to a buffer.- Parameters:
s
- buffer to append a debug description of core RevFlags onto.
-