|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.plugins.antlr.metadata.GrammarDelegate
public class GrammarDelegate
Antlr defines its 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.
Field Summary | |
---|---|
static Class[] |
NO_ARG_SIGNATURE
|
static Object[] |
NO_ARGS
|
Constructor Summary | |
---|---|
GrammarDelegate(Object antlrGrammarMetadata)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Class[] NO_ARG_SIGNATURE
public static final Object[] NO_ARGS
Constructor Detail |
---|
public GrammarDelegate(Object antlrGrammarMetadata)
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |