public class GrammarPropertiesImpl extends Object implements GrammarProperties
| Constructor and Description |
|---|
GrammarPropertiesImpl() |
public void setGrammarEngine(GrammarEngine engine)
setGrammarEngine in interface GrammarPropertiespublic void setSyntaxEngine(GrammarSyntaxEngine syntaxEngine)
setSyntaxEngine in interface GrammarPropertiespublic void setAntlrEngine(ANTLRGrammarEngine antlrEngine)
setAntlrEngine in interface GrammarPropertiespublic List<ElementRule> getRules()
getRules in interface GrammarPropertiespublic ElementRule getRuleWithName(String name)
getRuleWithName in interface GrammarPropertiespublic List<ElementGroup> getGroups()
getGroups in interface GrammarPropertiespublic List<ElementBlock> getBlocks()
getBlocks in interface GrammarPropertiespublic List<ElementAction> getActions()
getActions in interface GrammarPropertiespublic List<ElementReference> getReferences()
getReferences in interface GrammarPropertiespublic List<ElementImport> getImports()
getImports in interface GrammarPropertiespublic List<ATEToken> getDecls()
getDecls in interface GrammarPropertiespublic ElementGrammarName getElementName()
getElementName in interface GrammarPropertiespublic String getName()
getName in interface GrammarPropertiespublic int getType()
getType in interface GrammarPropertiespublic boolean isParserGrammar()
isParserGrammar in interface GrammarPropertiespublic boolean isLexerGrammar()
isLexerGrammar in interface GrammarPropertiespublic boolean isCombinedGrammar()
isCombinedGrammar in interface GrammarPropertiespublic boolean isTreeParserGrammar()
isTreeParserGrammar in interface GrammarPropertiespublic String getTokenVocab()
getTokenVocab in interface GrammarPropertiespublic List<String> getRuleNames()
getRuleNames in interface GrammarPropertiespublic ElementRule getRuleAtIndex(int index)
getRuleAtIndex in interface GrammarPropertiespublic int getNumberOfRulesWithErrors()
getNumberOfRulesWithErrors in interface GrammarPropertiespublic int getNumberOfErrors()
getNumberOfErrors in interface GrammarPropertiespublic List<ElementRule> getDuplicateRules()
getDuplicateRules in interface GrammarPropertiespublic List<ElementReference> getUndefinedReferences()
getUndefinedReferences in interface GrammarPropertiespublic void reset()
reset in interface GrammarPropertiespublic static boolean readTokenVocabFromFile(String filePath, Set<String> tokenNames) throws IOException
IOExceptionpublic void updateAll()
updateAll in interface GrammarPropertiespublic void parserCompleted()
parserCompleted in interface GrammarPropertiespublic List<String> getAllGeneratedNames() throws Exception
getAllGeneratedNames in interface GrammarPropertiesExceptionpublic int getFirstDeclarationPosition(String name)
getFirstDeclarationPosition in interface GrammarPropertiesCopyright © 2013. All rights reserved.