C# Класс GitSharp.Core.TreeWalk.WorkingTreeIterator

Walks a working directory tree as part of a {@link TreeWalk}. Most applications will want to use the standard implementation of this iterator, {@link FileTreeIterator}, as that does all IO through the standard java.io package. Plugins for a Java based IDE may however wish to Create their own implementations of this class to allow traversal of the IDE's project space, as well as benefit from any caching the IDE may have. FileTreeIterator
Наследование: AbstractTreeIterator
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
Eof Entry[]

Private Properties

Свойство Тип Описание
IdBufferBlob byte[]
InitializeDigest void
LastPathChar int
ParseEntry void

Открытые методы

Метод Описание
back ( int delta ) : void
eof ( ) : bool
first ( ) : bool
getEntryLastModified ( ) : long

Get the last modified time of this entry.

getEntryLength ( ) : long

Get the byte Length of this entry.

idBuffer ( ) : byte[]
idOffset ( ) : int
next ( int delta ) : void

Защищенные методы

Метод Описание
Init ( Entry list ) : void

Constructor helper.

WorkingTreeIterator ( ) : System

Create a new iterator with no parent.

WorkingTreeIterator ( WorkingTreeIterator parent ) : System

Create an iterator for a subtree of an existing iterator.

WorkingTreeIterator ( string prefix ) : System

Create a new iterator with no parent and a prefix. The prefix path supplied is inserted in front of all paths generated by this iterator. It is intended to be used when an iterator is being created for a subsection of an overall repository and needs to be combined with other iterators that are created to run over the entire repository namespace.

Приватные методы

Метод Описание
IdBufferBlob ( Entry entry ) : byte[]
InitializeDigest ( ) : void
LastPathChar ( Entry e ) : int
ParseEntry ( ) : void

Описание методов

Init() защищенный Метод

Constructor helper.
protected Init ( Entry list ) : void
list Entry /// Files in the subtree of the work tree this iterator operates on. ///
Результат void

WorkingTreeIterator() защищенный Метод

Create a new iterator with no parent.
protected WorkingTreeIterator ( ) : System
Результат System

WorkingTreeIterator() защищенный Метод

Create an iterator for a subtree of an existing iterator.
protected WorkingTreeIterator ( WorkingTreeIterator parent ) : System
parent WorkingTreeIterator Parent tree iterator.
Результат System

WorkingTreeIterator() защищенный Метод

Create a new iterator with no parent and a prefix. The prefix path supplied is inserted in front of all paths generated by this iterator. It is intended to be used when an iterator is being created for a subsection of an overall repository and needs to be combined with other iterators that are created to run over the entire repository namespace.
protected WorkingTreeIterator ( string prefix ) : System
prefix string /// Position of this iterator in the repository tree. The value /// may be null or the empty string to indicate the prefix is the /// root of the repository. A trailing slash ('/') is /// automatically appended if the prefix does not end in '/'. ///
Результат System

back() публичный Метод

public back ( int delta ) : void
delta int
Результат void

eof() публичный Метод

public eof ( ) : bool
Результат bool

first() публичный Метод

public first ( ) : bool
Результат bool

getEntryLastModified() публичный Метод

Get the last modified time of this entry.
public getEntryLastModified ( ) : long
Результат long

getEntryLength() публичный Метод

Get the byte Length of this entry.
public getEntryLength ( ) : long
Результат long

idBuffer() публичный Метод

public idBuffer ( ) : byte[]
Результат byte[]

idOffset() публичный Метод

public idOffset ( ) : int
Результат int

next() публичный Метод

public next ( int delta ) : void
delta int
Результат void

Описание свойств

Eof защищенное статическое свойство

An empty entry array, suitable for Init.
protected static Entry[] Eof
Результат Entry[]