org.ablaf.lexer
Interface ILexerSupport
- All Known Subinterfaces:
- IRubyLexerSupport
- All Known Implementing Classes:
- DefaultLexerSupport, RubyLexerSupport
- public interface ILexerSupport
- Version:
- $Revision: 1.4 $
- Author:
- jpetersen
read
public char read()
unread
public void unread()
unreadMany
public void unreadMany(int n)
getPosition
public ISourcePosition getPosition()
isNext
public boolean isNext(char c)
isNext
public boolean isNext(java.lang.String s)
- Check if the string s is the next string in the lexer.
If this is the case the String is consumed. If not the
lexer is rewinded and back in its original state
- Parameters:
s
- the string to check
- Returns:
- true if the string s is next false otherwise
getNext
public char getNext()
getLastRead
public char getLastRead()
getCharAt
public char getCharAt(int idx)
isEOL
public boolean isEOL()
isEOF
public boolean isEOF()
readHex
public java.lang.String readHex(int maxLen)
readOct
public java.lang.String readOct(int maxLen)
readLine
public java.lang.String readLine()
- Read upto the end of the line. Don't return the eol character.
Copyright © 2002 Jan Arne Petersen. All Rights Reserved.