edu.rice.cs.util.sexp
Class Tokens.SExpToken

java.lang.Object
  extended by edu.rice.cs.util.sexp.Tokens.SExpToken
Direct Known Subclasses:
Tokens.BackSlashToken, Tokens.BooleanToken, Tokens.LeftParenToken, Tokens.NumberToken, Tokens.QuotedTextToken, Tokens.RightParenToken, Tokens.WordToken
Enclosing interface:
Tokens

public static class Tokens.SExpToken
extends Object

These tokens are designed to be compared using the == operator with (, ), ", and \. Otherwise, the tokens may be compared using the .equals() method. This class is concrete only for testing purposes.


Field Summary
protected  String _rep
           
 
Constructor Summary
Tokens.SExpToken(String rep)
           
 
Method Summary
 boolean equals(Object o)
           
 String getText()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_rep

protected String _rep
Constructor Detail

Tokens.SExpToken

public Tokens.SExpToken(String rep)
Parameters:
rep - The string representation of this token
Method Detail

getText

public String getText()
Returns:
the string representation of this token

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object