public class Lexer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Lexer.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
addToken(Token... tokens) |
void |
addTrivia(List<Trivia> trivia) |
void |
addTrivia(Trivia... trivia) |
static Lexer.Builder |
builder() |
List<Token> |
getTokens() |
URI |
getURI() |
List<Token> |
lex(File file) |
List<Token> |
lex(String sourceCode)
Do not use this method, it is intended for internal unit testing only
|
List<Token> |
lex(URL url) |
public List<Token> lex(String sourceCode)
sourceCode - public void addTrivia(Trivia... trivia)
public void addToken(Token... tokens)
public URI getURI()
public static Lexer.Builder builder()
Copyright © 2009–2018 SonarSource. All rights reserved.