Eclipse Platform & Tools v3.6

org.eclipse.cdt.core.parser.util
Class CharTable

java.lang.Object
  extended by org.eclipse.cdt.core.parser.util.HashTable
      extended by org.eclipse.cdt.core.parser.util.CharTable
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CharArrayIntMap, CharArrayObjectMap, CharArraySet

public class CharTable
extends HashTable


Field Summary
protected  char[][] keyTable
           
 
Fields inherited from class org.eclipse.cdt.core.parser.util.HashTable
currEntry, hashTable, minHashSize, nextTable
 
Constructor Summary
CharTable(int initialSize)
           
 
Method Summary
protected  int addIndex(char[] buffer)
           
 int addIndex(char[] buffer, int start, int len)
           
 void clear()
           
 Object clone()
           
 boolean containsKey(char[] key)
           
 boolean containsKey(char[] key, int start, int len)
           
 char[] findKey(char[] buffer, int start, int len)
           
protected  int hash(char[] obj)
           
protected  int hash(char[] source, int start, int length)
           
protected  int hash(int pos)
           
 Object[] keyArray()
           
 char[] keyAt(int i)
           
 int lookup(char[] buffer)
           
protected  int lookup(char[] buffer, int start, int len)
           
protected  int lookup(char[] buffer, int start, int len, int hash)
           
protected  void removeEntry(int i)
           
protected  void resize(int size)
           
 List<char[]> toList()
           
 
Methods inherited from class org.eclipse.cdt.core.parser.util.HashTable
capacity, dumpNexts, isEmpty, linkIntoHashTable, partition, rehash, removeEntry, resize, size, sort
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyTable

protected char[][] keyTable
Constructor Detail

CharTable

public CharTable(int initialSize)
Method Detail

resize

protected void resize(int size)
Overrides:
resize in class HashTable

clear

public void clear()
Overrides:
clear in class HashTable

clone

public Object clone()
Overrides:
clone in class HashTable

hash

protected final int hash(char[] source,
                         int start,
                         int length)

hash

protected final int hash(int pos)
Overrides:
hash in class HashTable

hash

protected final int hash(char[] obj)

addIndex

protected final int addIndex(char[] buffer)

addIndex

public final int addIndex(char[] buffer,
                          int start,
                          int len)

removeEntry

protected void removeEntry(int i)

toList

public List<char[]> toList()

keyAt

public final char[] keyAt(int i)

containsKey

public final boolean containsKey(char[] key,
                                 int start,
                                 int len)

containsKey

public final boolean containsKey(char[] key)

findKey

public final char[] findKey(char[] buffer,
                            int start,
                            int len)

lookup

public int lookup(char[] buffer)

lookup

protected final int lookup(char[] buffer,
                           int start,
                           int len)

lookup

protected final int lookup(char[] buffer,
                           int start,
                           int len,
                           int hash)

keyArray

public Object[] keyArray()

Eclipse Platform & Tools v3.6