Package com.tonic.analysis.source.parser
The Java source parser and the tokens it reads.
-
Interface Summary Interface Description ParseErrorListener Callback the parser reports each error to, with factories for the throwing, collecting, logging and silent policies. -
Class Summary Class Description JavaParser Entry point for parsing Java source into the source AST, holding the error listener that decides whether parse errors throw or are collected.Lexer Hand-written Java tokenizer with unbounded lookahead, backed by a buffer of already-scanned tokens.ParseErrorListener.CollectingErrorListener Parser Recursive-descent parser over a Lexer token stream, tracking a scope stack so declared variable types are known while parsing expressions.SourcePosition Immutable line/column position in a source file, with an optional character offset.Token An immutable lexer token - its type, source text, decoded literal value and position. -
Enum Summary Enum Description Precedence Java operator binding strengths, ordered from loosest (NONE) to tightest (PRIMARY).TokenType The lexical token kinds of Java 11, declared in category order so the classification predicates can test ordinal ranges. -
Exception Summary Exception Description ParseException Unchecked failure to parse Java source, carrying the offending position and, when available, the source text so the message can show the line with a caret.