public class SyntheticTerminalAwareFragmentHelper extends AntlrFragmentHelper
Constructor and Description |
---|
SyntheticTerminalAwareFragmentHelper() |
SyntheticTerminalAwareFragmentHelper(Naming naming) |
Modifier and Type | Method and Description |
---|---|
protected SyntheticTerminalDetector |
createDetector()
Creates a new
SyntheticTerminalDetector . |
boolean |
isSyntheticTerminalRule(TerminalRule rule)
Synthetic terminal rules are rules which will not lead to a real terminal
rule in the generated lexer grammar but only provide the respective token types
instead.
|
getAllAlternatives, getAllAssignments, getAllElementsByType, getAllGroups, getAllPredicatedElements, getAllUnorderedGroups, getAntlrTokenFileProviderClassName, getContentAssistLexerGrammarFileName, getContentAssistLexerSuperClass, getContentAssistParserClassName, getContentAssistParserGrammarFileName, getContentAssistTokenSourceClassName, getInternalContentAssistLexerClassName, getInternalContentAssistParserClassName, getInternalParserClassName, getLexerClassName, getLexerGrammarFileName, getLexerSuperClass, getParserClassName, getParserGrammarFileName, getTokenSourceClassName, registerNaming
public SyntheticTerminalAwareFragmentHelper(Naming naming)
public SyntheticTerminalAwareFragmentHelper()
protected SyntheticTerminalDetector createDetector()
SyntheticTerminalDetector
. Clients may override.SerializerFragment.setSyntheticTerminalDetector(SyntheticTerminalDetector)
public boolean isSyntheticTerminalRule(TerminalRule rule)
This implementation answers true
for any terminal rule that has a body in the form
terminal MY_TERMINAL: 'synthetic:MY_TERMINAL';
.
isSyntheticTerminalRule
in class AntlrFragmentHelper
true
if this rule should not get an own lexer body.SyntheticTerminalDetector
,
createDetector()