harpoon.Tools.Annotation.Lex
Class Lexer

java.lang.Object
  extended by harpoon.Tools.Annotation.Lex.Lexer
All Implemented Interfaces:
Lexer

public class Lexer
extends Object
implements Lexer


Constructor Summary
Lexer(Reader reader)
           
Lexer(Reader reader, int java_minor_version)
           
 
Method Summary
 java_cup.runtime.Symbol _nextToken()
           
 void clearComment()
           
 boolean debug_lex()
           
 void errorMsg(String msg, java_cup.runtime.Symbol info)
          report an error
 String lastComment()
           
 LinePos linepos(int character_offset)
           
 java_cup.runtime.Symbol nextToken()
           
 int numErrors()
          return the number of errors reported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lexer

public Lexer(Reader reader)

Lexer

public Lexer(Reader reader,
             int java_minor_version)
Method Detail

nextToken

public java_cup.runtime.Symbol nextToken()
                                  throws IOException
Specified by:
nextToken in interface Lexer
Throws:
IOException

_nextToken

public java_cup.runtime.Symbol _nextToken()
                                   throws IOException
Throws:
IOException

debug_lex

public boolean debug_lex()
                  throws IOException
Throws:
IOException

lastComment

public String lastComment()

clearComment

public void clearComment()

errorMsg

public void errorMsg(String msg,
                     java_cup.runtime.Symbol info)
Description copied from interface: Lexer
report an error

Specified by:
errorMsg in interface Lexer

numErrors

public int numErrors()
Description copied from interface: Lexer
return the number of errors reported

Specified by:
numErrors in interface Lexer

linepos

public LinePos linepos(int character_offset)
Specified by:
linepos in interface Lexer