public class GrammarDelegate extends Object
Grammar class as package-protected for some unfortunate reason. So this class acts as a delegate to the Antlr Grammar class,
hiding all the ugly necessary reflection code.| Modifier and Type | Field and Description |
|---|---|
static Class[] |
NO_ARG_SIGNATURE |
static Object[] |
NO_ARGS |
| Constructor and Description |
|---|
GrammarDelegate(Object antlrGrammarMetadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
associateWith(GrammarMetadata associatedGrammarMetadata) |
static List<GrammarDelegate> |
extractGrammarDelegates(antlr.preprocessor.GrammarFile antlrGrammarFile) |
GrammarMetadata |
getAssociatedGrammarMetadata() |
String |
getClassName()
Retrieves the unqualified name of the lexer/parser class.
|
String |
getExportVocab()
Retrieves the name of this vocabulary exported by this grammar.
|
String |
getImportVocab()
Retrieves the name of this vocabulary imported by this grammar.
|
GrammarDelegate |
getSuperGrammarDelegate()
Retrieves the grammar delegate associated with this grammars super grammar deduced during preprocessing from its extends clause.
|
public static final Class[] NO_ARG_SIGNATURE
public static final Object[] NO_ARGS
public GrammarDelegate(Object antlrGrammarMetadata)
public static List<GrammarDelegate> extractGrammarDelegates(antlr.preprocessor.GrammarFile antlrGrammarFile)
public String getClassName()
public String getImportVocab()
public String getExportVocab()
public GrammarDelegate getSuperGrammarDelegate()
public void associateWith(GrammarMetadata associatedGrammarMetadata)
public GrammarMetadata getAssociatedGrammarMetadata()
Copyright © 2013. All rights reserved