public class Lexer2 extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Lexer2.LexerBuilder |
Constructor and Description |
---|
Lexer2(Charset defaultCharset)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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(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
|
@Deprecated public Lexer2(Charset defaultCharset)
builder();
@Deprecated public void setPreprocessors(Preprocessor2... preprocessors)
builder();
protected final Preprocessor2[] getPreprocessors()
protected org.sonar.channel.CodeReaderConfiguration getConfiguration()
@Deprecated protected void setConfiguration(org.sonar.channel.CodeReaderConfiguration configuration)
builder();
public Charset getCharset()
public LexerOutput lex(String sourceCode)
public final LexerOutput lex(File file)
@Beta public final LexerOutput lex(CobolFile file)
public void lex(Reader reader, LexerOutput lexerOutput)
protected LexerOutput createLexerOutput()
protected org.sonar.channel.ChannelDispatcher<LexerOutput> getChannelDispatcher()
@Deprecated public void startLexing()
@Deprecated public void endLexing(LexerOutput output)
public static Lexer2.LexerBuilder builder()
Copyright © 2009–2017 SonarSource. All rights reserved.