picasso.parser.tokens
Class EOFToken

java.lang.Object
  extended by picasso.parser.tokens.Token
      extended by picasso.parser.tokens.EOFToken

public class EOFToken
extends Token

This represents an end-of-file token. Uses the singleton pattern because there's no reason to have more than one such token. For equals, this compares false to any object other than an EOFToken

Author:
Owen Astrachan, Sara Sprenkle

Method Summary
 boolean equals(java.lang.Object o)
           
static EOFToken getInstance()
           
 boolean isConstant()
           
 boolean isFunction()
           
 
Methods inherited from class picasso.parser.tokens.Token
toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static EOFToken getInstance()
Returns:
an EOFToken (singleton)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
Returns:
true of o is an EOFToken, else return false

isConstant

public boolean isConstant()
Specified by:
isConstant in class Token
Returns:
true iff this Token represents a constant

isFunction

public boolean isFunction()
Specified by:
isFunction in class Token
Returns:
true iff this Token represents a function