EOFToken.java :  » XML » cambridge » cambridge » parser » tokens » Java Open Source

Java Open Source » XML » cambridge 
cambridge » cambridge » parser » tokens » EOFToken.java
package cambridge.parser.tokens;

/**
 * Token to represent End Of File character
 */
public class EOFToken extends Token {
   public EOFToken(int line, int c, String val, int nl, int nc) {
      super(line, c, val, nl, nc);
   }

   public TokenType getType() {
      return TokenType.EOF;
   }


   @Override
   public String getFormattedString() {
      return "EOF";
   }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.