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 classLexer2.LexerBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Lexer2.LexerBuilderbuilder()protected LexerOutputcreateLexerOutput()voidendLexing(LexerOutput output)Deprecated.use the parser event listeners insteadprotected org.sonar.channel.ChannelDispatcher<LexerOutput>getChannelDispatcher()CharsetgetCharset()protected org.sonar.channel.CodeReaderConfigurationgetConfiguration()protected Preprocessor2[]getPreprocessors()LexerOutputlex(CobolFile file)LexerOutputlex(File file)voidlex(Reader reader, LexerOutput lexerOutput)LexerOutputlex(String sourceCode)protected voidsetConfiguration(org.sonar.channel.CodeReaderConfiguration configuration)Deprecated.voidsetPreprocessors(Preprocessor2... preprocessors)Deprecated.voidstartLexing()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()
-
-