harpoon.Tools.Annotation.Lex
Class Lexer
java.lang.Object
harpoon.Tools.Annotation.Lex.Lexer
- All Implemented Interfaces:
- Lexer
public class Lexer
- extends Object
- implements Lexer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Lexer
public Lexer(Reader reader)
Lexer
public Lexer(Reader reader,
int java_minor_version)
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