Class MCGrammarSymbol
java.lang.Object
de.monticore.grammar.grammar._symboltable.MCGrammarSymbolTOP
de.monticore.grammar.grammar._symboltable.MCGrammarSymbol
- All Implemented Interfaces:
ICommonGrammarSymbol,de.monticore.symboltable.IScopeSpanningSymbol,de.monticore.symboltable.ISymbol
- Direct Known Subclasses:
MCGrammarSymbolSurrogate
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected final com.google.common.cache.LoadingCache<String, Optional<ProdSymbol>> protected Map<String, Collection<String>> protected ProdSymbolprotected final List<Supplier<Optional<MCGrammarSymbol>>> protected Map<String, Collection<String>> Fields inherited from class de.monticore.grammar.grammar._symboltable.MCGrammarSymbolTOP
accessModifier, astNode, enclosingScope, fullName, isComponent, name, noKeywords, packageName, spannedScope, splitRules, stereoinfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeywords(String keyword, Collection<String> additionalKeywords) voidvoidaddSuperGrammar(Supplier<MCGrammarSymbol> superGrammarRef) Deprecated.voidaddSuperGrammarSupplier(Supplier<Optional<MCGrammarSymbol>> superGrammarRef) protected StringDetermines dynamically the full name of the symbol.protected StringDeprecated.getInheritedProd(String ruleName) getProds()getProdWithInherited(String ruleName) The start production typically is the first defined production in the grammar.Deprecated.Returns the list of super grammar symbols.voidsetStartProd(ProdSymbol startRule) Methods inherited from class de.monticore.grammar.grammar._symboltable.MCGrammarSymbolTOP
accept, accept, accept, accept, accept, accept, accept, accept, addAllNoKeywords, addAllNoKeywords, addAllSplitRules, addAllSplitRules, addNoKeywords, addNoKeywords, addSplitRules, addSplitRules, clearNoKeywords, clearSplitRules, containsAllNoKeywords, containsAllSplitRules, containsNoKeywords, containsSplitRules, equals, equalsNoKeywords, equalsSplitRules, forEachNoKeywords, forEachSplitRules, getAccessModifier, getAstNode, getEnclosingScope, getFullName, getName, getNoKeywords, getNoKeywordsList, getPackageName, getSpannedScope, getSplitRules, getSplitRulesList, getStereoinfo, getThis, hashCodeNoKeywords, hashCodeSplitRules, indexOfNoKeywords, indexOfSplitRules, isEmptyNoKeywords, isEmptySplitRules, isIsComponent, isPresentAstNode, iteratorNoKeywords, iteratorSplitRules, lastIndexOfNoKeywords, lastIndexOfSplitRules, listIteratorNoKeywords, listIteratorNoKeywords, listIteratorSplitRules, listIteratorSplitRules, parallelStreamNoKeywords, parallelStreamSplitRules, removeAllNoKeywords, removeAllSplitRules, removeIfNoKeywords, removeIfSplitRules, removeNoKeywords, removeNoKeywords, removeSplitRules, removeSplitRules, replaceAllNoKeywords, replaceAllSplitRules, retainAllNoKeywords, retainAllSplitRules, setAccessModifier, setAstNode, setAstNodeAbsent, setEnclosingScope, setFullName, setIsComponent, setName, setNoKeywords, setNoKeywordsList, setPackageName, setSpannedScope, setSplitRules, setSplitRulesList, setStereoinfo, sizeNoKeywords, sizeSplitRules, sortNoKeywords, sortSplitRules, spliteratorNoKeywords, spliteratorSplitRules, streamNoKeywords, streamSplitRules, subListNoKeywords, subListSplitRules, toArrayNoKeywords, toArrayNoKeywords, toArraySplitRules, toArraySplitRules, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.monticore.symboltable.ISymbol
getSourcePosition
-
Field Details
-
DEFAULT_MODE
- See Also:
-
superGrammars
-
tokenModes
-
replacedKeywords
-
prodCache
-
startProd
-
-
Constructor Details
-
MCGrammarSymbol
-
-
Method Details
-
setStartProd
-
getStartProd
The start production typically is the first defined production in the grammar.- Returns:
- the start production of the grammar, if not a component grammar
-
getSuperGrammars
Deprecated.With the (planned) removal of SymbolSurrogates, real symbols are already returned -
getSuperGrammarSymbols
Returns the list of super grammar symbols. Resolves these symbols if needed.- Returns:
- the list of resolved super grammar symbols
- Throws:
NoSuchElementException- in case errors during the symbol resolution were ignored
-
getAllSuperGrammars
-
addSuperGrammar
Deprecated. -
addSuperGrammarSupplier
-
getProds
-
getProdNames
-
getProd
-
getProdWithInherited
-
getInheritedProd
-
getProdsWithInherited
-
getTokenRulesWithInherited
-
getKeywordRulesWithInherited
-
getTokenModesWithInherited
-
getReplacedKeywordsWithInherited
-
getTokenModes
-
getAdditionalKeywords
Deprecated. -
getReplacedKeywords
-
getAstGrammar
-
determineFullName
Determines dynamically the full name of the symbol.- Overrides:
determineFullNamein classMCGrammarSymbolTOP- Returns:
- the full name of the symbol determined dynamically
-
determinePackageName
- Overrides:
determinePackageNamein classMCGrammarSymbolTOP
-
addMode
-
addKeywords
-
getSuperGrammarSymbols()