Package com.sonar.sslr.impl
Class Lexer2
- java.lang.Object
-
- com.sonar.sslr.impl.Lexer2
-
public class Lexer2 extends Object
This class allows to ensure forward compatibility with SSLR 1.9.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Lexer2.LexerBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Lexer2.LexerBuilder
builder()
protected LexerOutput
createLexerOutput()
void
endLexing(LexerOutput output)
Deprecated.use the parser event listeners insteadprotected org.sonar.channel.ChannelDispatcher<LexerOutput>
getChannelDispatcher()
Charset
getCharset()
protected org.sonar.channel.CodeReaderConfiguration
getConfiguration()
protected Preprocessor2[]
getPreprocessors()
LexerOutput
lex(CobolFile file)
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
-
-
-
Constructor Detail
-
Lexer2
@Deprecated public Lexer2(Charset defaultCharset)
Deprecated.
-
-
Method Detail
-
setPreprocessors
@Deprecated public void setPreprocessors(Preprocessor2... preprocessors)
Deprecated.
-
getPreprocessors
protected final Preprocessor2[] getPreprocessors()
-
getConfiguration
protected org.sonar.channel.CodeReaderConfiguration getConfiguration()
-
setConfiguration
@Deprecated protected void setConfiguration(org.sonar.channel.CodeReaderConfiguration configuration)
Deprecated.
-
getCharset
public Charset getCharset()
-
lex
public LexerOutput lex(String sourceCode)
-
lex
public final LexerOutput lex(File file)
-
lex
@Beta public final LexerOutput lex(CobolFile 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()
-
-