class DefaultToolErrorHandler extends java.lang.Object implements ToolErrorHandler
| Modifier and Type | Field and Description |
|---|---|
(package private) CharFormatter |
javaCharFormatter |
| Constructor and Description |
|---|
DefaultToolErrorHandler(Tool tool) |
| Modifier and Type | Method and Description |
|---|---|
void |
warnAltAmbiguity(Grammar grammar,
AlternativeBlock blk,
boolean lexicalAnalysis,
int depth,
Lookahead[] sets,
int altIdx1,
int altIdx2)
Issue a warning about ambiguity between a alternates
|
void |
warnAltExitAmbiguity(Grammar grammar,
BlockWithImpliedExitPath blk,
boolean lexicalAnalysis,
int depth,
Lookahead[] sets,
int altIdx)
Issue a warning about ambiguity between an alternate and exit path.
|
CharFormatter javaCharFormatter
DefaultToolErrorHandler(Tool tool)
public void warnAltAmbiguity(Grammar grammar, AlternativeBlock blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx1, int altIdx2)
warnAltAmbiguity in interface ToolErrorHandlerblk - The block being analyzedlexicalAnalysis - true for lexical ruledepth - The depth of the ambiguitysets - An array of bitsets containing the ambiguitiesaltIdx1 - The zero-based index of the first ambiguous alternativealtIdx2 - The zero-based index of the second ambiguous alternativepublic void warnAltExitAmbiguity(Grammar grammar, BlockWithImpliedExitPath blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx)
warnAltExitAmbiguity in interface ToolErrorHandlerblk - The block being analyzedlexicalAnalysis - true for lexical ruledepth - The depth of the ambiguitysets - An array of bitsets containing the ambiguitiesaltIdx - The zero-based index of the ambiguous alternative