|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jgit.lib.TreeEntry
public abstract class TreeEntry
This class represents an entry in a tree, like a blob or another tree.
| Field Summary | |
|---|---|
static int |
CONCURRENT_MODIFICATION
a flag for accept(TreeVisitor, int) obsolete? |
static int |
LOADED_ONLY
a flag for accept(TreeVisitor, int) to visit only loaded entries |
static int |
MODIFIED_ONLY
a flag for accept(TreeVisitor, int) to visit only modified entries |
| Constructor Summary | |
|---|---|
protected |
TreeEntry(Tree myParent,
ObjectId myId,
byte[] myNameUTF8)
Construct a named tree entry. |
| Method Summary | |
|---|---|
void |
accept(TreeVisitor tv)
See @{link accept(TreeVisitor, int). |
abstract void |
accept(TreeVisitor tv,
int flags)
Visit the members of this TreeEntry. |
int |
compareTo(java.lang.Object o)
|
void |
delete()
Delete this entry. |
void |
detachParent()
Detach this entry from it's parent. |
java.lang.String |
getFullName()
|
byte[] |
getFullNameUTF8()
|
ObjectId |
getId()
|
abstract FileMode |
getMode()
|
java.lang.String |
getName()
|
byte[] |
getNameUTF8()
|
Tree |
getParent()
|
Repository |
getRepository()
|
boolean |
isModified()
|
static int |
lastChar(GitIndex.Entry i)
Helper for accessing tree/blob/index methods. |
static int |
lastChar(TreeEntry treeEntry)
Helper for accessing tree/blob methods. |
void |
rename(byte[] n)
Rename this entry. |
void |
rename(java.lang.String n)
Rename this entry. |
void |
setId(ObjectId n)
Set (update) the SHA-1 of this entry. |
void |
setModified()
Mark this entry as modified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MODIFIED_ONLY
accept(TreeVisitor, int) to visit only modified entries
public static final int LOADED_ONLY
accept(TreeVisitor, int) to visit only loaded entries
public static final int CONCURRENT_MODIFICATION
accept(TreeVisitor, int) obsolete?
| Constructor Detail |
|---|
protected TreeEntry(Tree myParent,
ObjectId myId,
byte[] myNameUTF8)
myParent - myId - myNameUTF8 - | Method Detail |
|---|
public Tree getParent()
public void delete()
public void detachParent()
public Repository getRepository()
public byte[] getNameUTF8()
public java.lang.String getName()
public void rename(java.lang.String n)
throws java.io.IOException
n - The new name
java.io.IOException
public void rename(byte[] n)
throws java.io.IOException
n - The new name
java.io.IOExceptionpublic boolean isModified()
public void setModified()
public ObjectId getId()
public void setId(ObjectId n)
n - SHA-1 for this entry.public java.lang.String getFullName()
public byte[] getFullNameUTF8()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic static final int lastChar(TreeEntry treeEntry)
treeEntry -
public static final int lastChar(GitIndex.Entry i)
i -
public void accept(TreeVisitor tv)
throws java.io.IOException
accept(TreeVisitor, int).
tv -
java.io.IOException
public abstract void accept(TreeVisitor tv,
int flags)
throws java.io.IOException
tv - A visitor object doing the workflags - Specification for what members to visit. See
MODIFIED_ONLY, LOADED_ONLY,
CONCURRENT_MODIFICATION.
java.io.IOExceptionpublic abstract FileMode getMode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||