org.jruby.lexer.yacc
Class RubyLexerSupport

java.lang.Object
  extended byorg.ablaf.internal.lexer.DefaultLexerSupport
      extended byorg.jruby.lexer.yacc.RubyLexerSupport
All Implemented Interfaces:
ILexerSupport, IRubyLexerSupport

public class RubyLexerSupport
extends DefaultLexerSupport
implements IRubyLexerSupport

Version:
$Revision: 1.7 $
Author:
jpetersen

Field Summary
 
Fields inherited from class org.ablaf.internal.lexer.DefaultLexerSupport
lineOffset, source
 
Constructor Summary
RubyLexerSupport(ILexerSource source)
          Constructor for RubyLexerSupport.
 
Method Summary
 int getColumn()
           
 ISourcePosition getPosition()
           
 char read()
           
 char readEscape()
           
 void setBuffer(java.lang.String buffer, ISourcePosition startPosition)
           
 void unread()
           
 
Methods inherited from class org.ablaf.internal.lexer.DefaultLexerSupport
getCharAt, getLastRead, getNext, isEOF, isEOL, isNext, isNext, readHex, readLine, readOct, unreadMany
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ablaf.lexer.ILexerSupport
getCharAt, getLastRead, getNext, isEOF, isEOL, isNext, isNext, readHex, readLine, readOct, unreadMany
 

Constructor Detail

RubyLexerSupport

public RubyLexerSupport(ILexerSource source)
Constructor for RubyLexerSupport.

Parameters:
source -
Method Detail

setBuffer

public void setBuffer(java.lang.String buffer,
                      ISourcePosition startPosition)
Specified by:
setBuffer in interface IRubyLexerSupport
See Also:
IRubyLexerSupport.setBuffer(String, ISourcePosition)

getPosition

public ISourcePosition getPosition()
Specified by:
getPosition in interface ILexerSupport
Overrides:
getPosition in class DefaultLexerSupport
See Also:
DefaultLexerSupport.getPosition()

getColumn

public int getColumn()
Specified by:
getColumn in interface IRubyLexerSupport

read

public char read()
Specified by:
read in interface ILexerSupport
Overrides:
read in class DefaultLexerSupport
See Also:
DefaultLexerSupport.read()

unread

public void unread()
Specified by:
unread in interface ILexerSupport
Overrides:
unread in class DefaultLexerSupport
See Also:
DefaultLexerSupport.unread()

readEscape

public char readEscape()
                throws LexerException
Specified by:
readEscape in interface IRubyLexerSupport
Throws:
LexerException


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.