src.backend
クラス TermChunk

java.lang.Object
  上位を拡張 src.backend.Chunk
      上位を拡張 src.backend.TermChunk
すべての実装されたインタフェース:
IChunk

public class TermChunk
extends Chunk
implements IChunk

Koji modified: Change this class into not unknown chunks.

作成者:
irons

コンストラクタの概要
TermChunk()
           
TermChunk(Level level, ChunkHeader header)
           
 
メソッドの概要
 void addEntry(TermEntry entry)
           
 int calc()
           
 TermEntry getEntry(int entry)
           
 int getEntryLength()
           
 int getNumEntries()
           
 void insertEntry(TermEntry newEntry, int sel)
          insert new terminal entry into this chunk
 void read()
           
 TermEntry removeEntry(TermEntry entry)
          remove entry when included in this chunk.
 void write()
           
 
クラス src.backend.Chunk から継承されたメソッド
getHeader, getLength, getLevel, getNextOffset, getOffset, getTag, setHeader, setLevel
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TermChunk

public TermChunk(Level level,
                 ChunkHeader header)

TermChunk

public TermChunk()
メソッドの詳細

read

public void read()
定義:
インタフェース IChunk 内の read
オーバーライド:
クラス Chunk 内の read

write

public void write()
定義:
インタフェース IChunk 内の write
オーバーライド:
クラス Chunk 内の write

calc

public int calc()
オーバーライド:
クラス Chunk 内の calc

getEntryLength

public int getEntryLength()
定義:
インタフェース IChunk 内の getEntryLength
定義:
クラス Chunk 内の getEntryLength

getNumEntries

public int getNumEntries()
定義:
インタフェース IChunk 内の getNumEntries
定義:
クラス Chunk 内の getNumEntries

getEntry

public TermEntry getEntry(int entry)
                   throws OutOfEntriesIndexException
例外:
OutOfEntriesIndexException

addEntry

public void addEntry(TermEntry entry)

removeEntry

public TermEntry removeEntry(TermEntry entry)
remove entry when included in this chunk.

パラメータ:
entry - an entry you want to remove
戻り値:
return entry to remove

insertEntry

public void insertEntry(TermEntry newEntry,
                        int sel)
insert new terminal entry into this chunk

パラメータ:
newEntry -
sel -