com.sonar.sslr.impl
Class Lexer2

java.lang.Object
  extended by com.sonar.sslr.impl.Lexer2

public class Lexer2
extends Object

This class allows to ensure forward compatibility with SSLR 1.9.


Nested Class Summary
static class Lexer2.LexerBuilder
           
 
Constructor Summary
Lexer2(Charset defaultCharset)
          Deprecated.  
 
Method Summary
static Lexer2.LexerBuilder builder()
           
protected  LexerOutput createLexerOutput()
           
 void endLexing(LexerOutput output)
          Deprecated. use the parser event listeners instead
protected  org.sonar.channel.ChannelDispatcher<LexerOutput> getChannelDispatcher()
           
 Charset getCharset()
           
protected  org.sonar.channel.CodeReaderConfiguration getConfiguration()
           
protected  Preprocessor2[] getPreprocessors()
           
 LexerOutput lex(File file)
           
 void lex(Reader reader, LexerOutput lexerOutput)
           
 LexerOutput lex(String sourceCode)
           
protected  void setConfiguration(org.sonar.channel.CodeReaderConfiguration configuration)
          Deprecated.  
 void setPreprocessors(Preprocessor2... preprocessors)
          Deprecated.  
 void startLexing()
          Deprecated. use the parser event listeners instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lexer2

@Deprecated
public Lexer2(Charset defaultCharset)
Deprecated. 

See Also:
builder();
Method Detail

setPreprocessors

@Deprecated
public void setPreprocessors(Preprocessor2... preprocessors)
Deprecated. 

See Also:
builder();

getPreprocessors

protected final Preprocessor2[] getPreprocessors()

getConfiguration

protected org.sonar.channel.CodeReaderConfiguration getConfiguration()

setConfiguration

@Deprecated
protected void setConfiguration(org.sonar.channel.CodeReaderConfiguration configuration)
Deprecated. 

See Also:
builder();

getCharset

public Charset getCharset()

lex

public LexerOutput lex(String sourceCode)

lex

public final LexerOutput lex(File file)

lex

public void lex(Reader reader,
                LexerOutput lexerOutput)

createLexerOutput

protected LexerOutput createLexerOutput()

getChannelDispatcher

protected org.sonar.channel.ChannelDispatcher<LexerOutput> getChannelDispatcher()

startLexing

@Deprecated
public void startLexing()
Deprecated. use the parser event listeners instead


endLexing

@Deprecated
public void endLexing(LexerOutput output)
Deprecated. use the parser event listeners instead


builder

public static Lexer2.LexerBuilder builder()


Copyright © 2009-2014 SonarSource. All Rights Reserved.