org.jruby.lexer.yacc
Class StringToken

java.lang.Object
  extended byorg.jruby.lexer.yacc.StringToken

public class StringToken
extends java.lang.Object

Represents a token which is currently lexed.

Version:
$Revision: 1.3 $
Author:
jpetersen

Constructor Summary
StringToken(ILexerSupport support, IErrorHandler errorHandler, ISourcePosition position)
          Constructor for StringToken.
 
Method Summary
 void append(char c)
           
 void append(java.lang.String s)
           
 void appendEscape(char closeQuote)
           
 IErrorHandler getErrorHandler()
          Gets the errorHandler.
 int getLength()
           
 ISourcePosition getPosition()
          Gets the position.
 ILexerSupport getSupport()
          Gets the support.
 java.lang.String getToken()
           
 void newToken(ISourcePosition position)
           
 void setErrorHandler(IErrorHandler errorHandler)
          Sets the errorHandler.
 void setPosition(ISourcePosition position)
          Sets the position.
 void setSupport(ILexerSupport support)
          Sets the support.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringToken

public StringToken(ILexerSupport support,
                   IErrorHandler errorHandler,
                   ISourcePosition position)
Constructor for StringToken.

Method Detail

append

public void append(char c)

append

public void append(java.lang.String s)

getToken

public java.lang.String getToken()

getLength

public int getLength()

newToken

public void newToken(ISourcePosition position)

appendEscape

public void appendEscape(char closeQuote)
                  throws java.io.EOFException
Throws:
java.io.EOFException

getErrorHandler

public IErrorHandler getErrorHandler()
Gets the errorHandler.

Returns:
Returns a IErrorHandler

setErrorHandler

public void setErrorHandler(IErrorHandler errorHandler)
Sets the errorHandler.

Parameters:
errorHandler - The errorHandler to set

getSupport

public ILexerSupport getSupport()
Gets the support.

Returns:
Returns a ILexerSupport

setSupport

public void setSupport(ILexerSupport support)
Sets the support.

Parameters:
support - The support to set

getPosition

public ISourcePosition getPosition()
Gets the position.

Returns:
Returns a ISourcePosition

setPosition

public void setPosition(ISourcePosition position)
Sets the position.

Parameters:
position - The position to set


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.