Package org.eclipse.jgit.revwalk
Class RevTree
- 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.RevTree
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AnyObjectId>
public class RevTree extends RevObject
A reference to a tree of subtrees/files.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RevTree(AnyObjectId id)
Create a new tree reference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
Get Git object type.(package private) void
parseBody(RevWalk walk)
(package private) void
parseHeaders(RevWalk walk)
-
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
-
-
-
-
Constructor Detail
-
RevTree
protected RevTree(AnyObjectId id)
Create a new tree reference.- Parameters:
id
- object name for the tree.
-
-
Method Detail
-
getType
public final int getType()
Get Git object type. SeeConstants
.
-
parseHeaders
void parseHeaders(RevWalk walk) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
- Specified by:
parseHeaders
in classRevObject
- Throws:
MissingObjectException
IncorrectObjectTypeException
java.io.IOException
-
parseBody
void parseBody(RevWalk walk) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
- Specified by:
parseBody
in classRevObject
- Throws:
MissingObjectException
IncorrectObjectTypeException
java.io.IOException
-
-