public class GrammarDelegate
extends java.lang.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 java.lang.Class[] |
NO_ARG_SIGNATURE |
static java.lang.Object[] |
NO_ARGS |
| Constructor and Description |
|---|
GrammarDelegate(java.lang.Object antlrGrammarMetadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
associateWith(GrammarMetadata associatedGrammarMetadata) |
static java.util.List<GrammarDelegate> |
extractGrammarDelegates(antlr.preprocessor.GrammarFile antlrGrammarFile) |
GrammarMetadata |
getAssociatedGrammarMetadata() |
java.lang.String |
getClassName()
Retrieves the unqualified name of the lexer/parser class.
|
java.lang.String |
getExportVocab()
Retrieves the name of this vocabulary exported by this grammar.
|
java.lang.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 java.lang.Class[] NO_ARG_SIGNATURE
public static final java.lang.Object[] NO_ARGS
public static java.util.List<GrammarDelegate> extractGrammarDelegates(antlr.preprocessor.GrammarFile antlrGrammarFile)
public java.lang.String getClassName()
public java.lang.String getImportVocab()
public java.lang.String getExportVocab()
public GrammarDelegate getSuperGrammarDelegate()
public void associateWith(GrammarMetadata associatedGrammarMetadata)
public GrammarMetadata getAssociatedGrammarMetadata()
Copyright © 2013. All rights reserved