antlr
Class ANTLRHashString

java.lang.Object
  |
  +--antlr.ANTLRHashString

public class ANTLRHashString
extends Object

Untamed:


Field Summary
private  char[] buf
           
private  int len
           
private  CharScanner lexer
           
private static int prime
           
private  String s
           
 
Constructor Summary
ANTLRHashString(char[] buf, int length, CharScanner lexer)
          Enabled:
ANTLRHashString(CharScanner lexer)
          Enabled:
ANTLRHashString(String s, CharScanner lexer)
          Enabled:
 
Method Summary
private  char charAt(int index)
           
 boolean equals(Object o)
          Suppressed:
 int hashCode()
          Suppressed:
private  int length()
           
 void setBuffer(char[] buf, int length)
          Enabled:
 void setString(String s)
          Enabled:
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s

private String s

buf

private char[] buf

len

private int len

lexer

private CharScanner lexer

prime

private static final int prime
Constructor Detail

ANTLRHashString

public ANTLRHashString(char[] buf,
                       int length,
                       CharScanner lexer)
Enabled:


ANTLRHashString

public ANTLRHashString(CharScanner lexer)
Enabled:


ANTLRHashString

public ANTLRHashString(String s,
                       CharScanner lexer)
Enabled:

Method Detail

charAt

private final char charAt(int index)

equals

public boolean equals(Object o)
Suppressed:

Overrides:
equals in class Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Object.hashCode(), java.util.Hashtable

hashCode

public int hashCode()
Suppressed:

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.
See Also:
java.lang.Object#equals(java.lang.Object), java.util.Hashtable

length

private final int length()

setBuffer

public void setBuffer(char[] buf,
                      int length)
Enabled:


setString

public void setString(String s)
Enabled:



comments?