public class AntlrGrammarComparator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AntlrGrammarComparator.ErrorContext |
static interface |
AntlrGrammarComparator.IErrorHandler |
static class |
AntlrGrammarComparator.MatchState |
Constructor and Description |
---|
AntlrGrammarComparator() |
Modifier and Type | Method and Description |
---|---|
AntlrGrammarComparator.ErrorContext |
compareGrammars(java.lang.CharSequence grammar,
java.lang.CharSequence grammarReference,
AntlrGrammarComparator.IErrorHandler errorHandler)
Performs the actual comparison of given and expected grammar.
|
AntlrGrammarComparator.ErrorContext |
compareGrammars(java.lang.CharSequence grammar,
java.lang.CharSequence grammarReference,
java.lang.String absoluteGrammarFileName,
java.lang.String absoluteGrammarFileNameReference,
AntlrGrammarComparator.IErrorHandler errorHandler)
Performs the actual comparison of given and expected grammar.
|
public AntlrGrammarComparator.ErrorContext compareGrammars(java.lang.CharSequence grammar, java.lang.CharSequence grammarReference, java.lang.String absoluteGrammarFileName, java.lang.String absoluteGrammarFileNameReference, AntlrGrammarComparator.IErrorHandler errorHandler)
Pair
containing the number of lines of the tested grammar (key)
and the referenced grammar (value) for logging purposespublic AntlrGrammarComparator.ErrorContext compareGrammars(java.lang.CharSequence grammar, java.lang.CharSequence grammarReference, AntlrGrammarComparator.IErrorHandler errorHandler)
Pair
containing the number of lines of the tested grammar (key)
and the referenced grammar (value) for logging purposes