Class AntlrContentAssistGrammarGenerator
- java.lang.Object
-
- org.eclipse.xtext.xtext.generator.parser.antlr.AbstractAntlrGrammarGenerator
-
- org.eclipse.xtext.xtext.generator.parser.antlr.AbstractAntlrGrammarWithActionsGenerator
-
- org.eclipse.xtext.xtext.generator.parser.antlr.AntlrContentAssistGrammarGenerator
-
public class AntlrContentAssistGrammarGenerator extends AbstractAntlrGrammarWithActionsGenerator
-
-
Field Summary
-
Fields inherited from class org.eclipse.xtext.xtext.generator.parser.antlr.AbstractAntlrGrammarGenerator
_grammarAccessExtensions, _syntheticTerminalDetector, _xtextGeneratorNaming, keywordHelper
-
-
Constructor Summary
Constructors Constructor Description AntlrContentAssistGrammarGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
_assignmentEbnf(org.eclipse.xtext.AbstractElement it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportsActions)
protected java.lang.String
_assignmentEbnf(org.eclipse.xtext.Alternatives it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportsActions)
protected java.lang.String
_assignmentEbnf(org.eclipse.xtext.CrossReference it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportsActions)
protected java.lang.String
_assignmentEbnf(org.eclipse.xtext.RuleCall it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportsActions)
protected java.lang.CharSequence
_compileRule(org.eclipse.xtext.Alternatives it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
protected java.lang.CharSequence
_compileRule(org.eclipse.xtext.Assignment it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
protected java.lang.CharSequence
_compileRule(org.eclipse.xtext.EnumRule it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
protected java.lang.CharSequence
_compileRule(org.eclipse.xtext.Group it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
protected java.lang.CharSequence
_compileRule(org.eclipse.xtext.ParserRule it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
protected java.lang.CharSequence
_compileRule(org.eclipse.xtext.UnorderedGroup it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
protected java.lang.String
_crossrefEbnf(org.eclipse.xtext.AbstractRule it, org.eclipse.xtext.RuleCall call, org.eclipse.xtext.CrossReference ref, boolean supportActions)
protected java.lang.String
_crossrefEbnf(org.eclipse.xtext.EnumRule it, org.eclipse.xtext.RuleCall call, org.eclipse.xtext.CrossReference ref, boolean supportActions)
protected java.lang.String
_crossrefEbnf(org.eclipse.xtext.Keyword it, org.eclipse.xtext.CrossReference ref, boolean supportActions)
protected java.lang.String
_crossrefEbnf(org.eclipse.xtext.RuleCall it, org.eclipse.xtext.CrossReference ref, boolean supportActions)
protected java.lang.String
_crossrefEbnf(org.eclipse.xtext.TerminalRule it, org.eclipse.xtext.RuleCall call, org.eclipse.xtext.CrossReference ref, boolean supportActions)
protected java.lang.String
_ebnf2(org.eclipse.xtext.Alternatives it, AntlrOptions options, boolean supportActions)
protected java.lang.String
_ebnf2(org.eclipse.xtext.Assignment it, AntlrOptions options, boolean supportActions)
protected java.lang.String
_ebnf2(org.eclipse.xtext.Group it, AntlrOptions options, boolean supportActions)
protected java.lang.String
_ebnf2(org.eclipse.xtext.RuleCall it, AntlrOptions options, boolean supportActions)
protected java.lang.String
_ebnf2(org.eclipse.xtext.UnorderedGroup it, AntlrOptions options, boolean supportActions)
protected java.lang.String
assignmentEbnf(org.eclipse.xtext.AbstractElement it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportsActions)
protected java.lang.String
compileParserImports(org.eclipse.xtext.Grammar it, AntlrOptions options)
protected java.lang.String
compileParserMembers(org.eclipse.xtext.Grammar it, AntlrOptions options)
protected java.lang.CharSequence
compileRule(java.lang.Object it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
protected java.lang.CharSequence
compileRules(org.eclipse.xtext.Grammar g, AntlrOptions options)
protected java.lang.String
crossrefEbnf(org.eclipse.xtext.AbstractElement it, org.eclipse.xtext.CrossReference ref, boolean supportActions)
protected java.lang.String
crossrefEbnf(org.eclipse.xtext.AbstractRule it, org.eclipse.xtext.RuleCall call, org.eclipse.xtext.CrossReference ref, boolean supportActions)
protected java.lang.String
ebnf(org.eclipse.xtext.AbstractElement it, AntlrOptions options, boolean supportsActions)
protected java.lang.String
ebnf2(org.eclipse.xtext.AbstractElement it, AntlrOptions options, boolean supportActions)
protected GrammarNaming
getGrammarNaming()
protected boolean
isParserBackTracking(org.eclipse.xtext.Grammar it, AntlrOptions options)
protected java.lang.CharSequence
paramConfig(org.eclipse.xtext.AbstractElement it)
protected java.lang.CharSequence
ruleImpl(org.eclipse.xtext.Group it, org.eclipse.xtext.Grammar grammar, AntlrOptions options, int index)
protected java.lang.CharSequence
ruleImpl(org.eclipse.xtext.UnorderedGroup it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
protected java.lang.CharSequence
ruleImpl(org.eclipse.xtext.UnorderedGroup it, org.eclipse.xtext.Grammar grammar, AntlrOptions options, int index)
protected boolean
shouldBeSkipped(org.eclipse.xtext.TerminalRule it, org.eclipse.xtext.Grammar grammar)
-
Methods inherited from class org.eclipse.xtext.xtext.generator.parser.antlr.AbstractAntlrGrammarWithActionsGenerator
_compileInitHiddenTokens, _compileInitHiddenTokens, _compileInitUnorderedGroups, _compileInitUnorderedGroups, _compileRestoreHiddenTokens, _compileRestoreHiddenTokens, _compileRestoreUnorderedGroups, _compileRestoreUnorderedGroups, _dataTypeEbnf2, _dataTypeEbnf2, _dataTypeEbnf2, _mustBeParenthesized, _mustBeParenthesized, _mustBeParenthesized, _mustBeParenthesized, _mustBeParenthesized, _mustBeParenthesized, compileEntryFinally, compileEntryInit, compileFinally, compileInit, compileInitHiddenTokens, compileInitUnorderedGroups, compileRestoreHiddenTokens, compileRestoreUnorderedGroups, getCurrentType, isPassCurrentIntoFragment, mustBeParenthesized
-
Methods inherited from class org.eclipse.xtext.xtext.generator.parser.antlr.AbstractAntlrGrammarGenerator
_assignmentEbnf, _assignmentEbnf, _assignmentEbnf, _compileRule, _compileRule, _crossrefEbnf, _crossrefEbnf, _dataTypeEbnf2, _dataTypeEbnf2, _dataTypeEbnf2, _ebnf2, _ebnf2, _ebnf2, _ebnf2, compileEBNF, compileKeywordRules, compileLexer, compileLexerHeader, compileLexerImports, compileLexerOptions, compileParser, compileParserHeader, compileParserOptions, compileRuleCatch, compileTerminalRules, compileTokens, dataTypeEbnf, dataTypeEbnf2, dataTypeEbnfPredicate, ebnf, ebnfPredicate, generate, isCombinedGrammar, toAntlrKeywordRule
-
-
-
-
Method Detail
-
getGrammarNaming
protected GrammarNaming getGrammarNaming()
- Specified by:
getGrammarNaming
in classAbstractAntlrGrammarGenerator
-
isParserBackTracking
protected boolean isParserBackTracking(org.eclipse.xtext.Grammar it, AntlrOptions options)
- Overrides:
isParserBackTracking
in classAbstractAntlrGrammarGenerator
-
compileParserMembers
protected java.lang.String compileParserMembers(org.eclipse.xtext.Grammar it, AntlrOptions options)
- Overrides:
compileParserMembers
in classAbstractAntlrGrammarGenerator
-
compileParserImports
protected java.lang.String compileParserImports(org.eclipse.xtext.Grammar it, AntlrOptions options)
- Overrides:
compileParserImports
in classAbstractAntlrGrammarGenerator
-
compileRules
protected java.lang.CharSequence compileRules(org.eclipse.xtext.Grammar g, AntlrOptions options)
- Overrides:
compileRules
in classAbstractAntlrGrammarGenerator
-
_compileRule
protected java.lang.CharSequence _compileRule(org.eclipse.xtext.ParserRule it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
- Overrides:
_compileRule
in classAbstractAntlrGrammarGenerator
-
_compileRule
protected java.lang.CharSequence _compileRule(org.eclipse.xtext.EnumRule it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
- Overrides:
_compileRule
in classAbstractAntlrGrammarGenerator
-
_compileRule
protected java.lang.CharSequence _compileRule(org.eclipse.xtext.Alternatives it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
-
_compileRule
protected java.lang.CharSequence _compileRule(org.eclipse.xtext.Assignment it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
-
_compileRule
protected java.lang.CharSequence _compileRule(org.eclipse.xtext.UnorderedGroup it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
-
_compileRule
protected java.lang.CharSequence _compileRule(org.eclipse.xtext.Group it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
-
ruleImpl
protected java.lang.CharSequence ruleImpl(org.eclipse.xtext.UnorderedGroup it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
-
ruleImpl
protected java.lang.CharSequence ruleImpl(org.eclipse.xtext.UnorderedGroup it, org.eclipse.xtext.Grammar grammar, AntlrOptions options, int index)
-
ruleImpl
protected java.lang.CharSequence ruleImpl(org.eclipse.xtext.Group it, org.eclipse.xtext.Grammar grammar, AntlrOptions options, int index)
-
ebnf
protected java.lang.String ebnf(org.eclipse.xtext.AbstractElement it, AntlrOptions options, boolean supportsActions)
- Overrides:
ebnf
in classAbstractAntlrGrammarGenerator
-
paramConfig
protected java.lang.CharSequence paramConfig(org.eclipse.xtext.AbstractElement it)
-
_assignmentEbnf
protected java.lang.String _assignmentEbnf(org.eclipse.xtext.AbstractElement it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportsActions)
- Overrides:
_assignmentEbnf
in classAbstractAntlrGrammarGenerator
-
_assignmentEbnf
protected java.lang.String _assignmentEbnf(org.eclipse.xtext.CrossReference it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportsActions)
- Overrides:
_assignmentEbnf
in classAbstractAntlrGrammarGenerator
-
_assignmentEbnf
protected java.lang.String _assignmentEbnf(org.eclipse.xtext.Alternatives it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportsActions)
- Overrides:
_assignmentEbnf
in classAbstractAntlrGrammarWithActionsGenerator
-
_assignmentEbnf
protected java.lang.String _assignmentEbnf(org.eclipse.xtext.RuleCall it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportsActions)
- Overrides:
_assignmentEbnf
in classAbstractAntlrGrammarWithActionsGenerator
-
_crossrefEbnf
protected java.lang.String _crossrefEbnf(org.eclipse.xtext.RuleCall it, org.eclipse.xtext.CrossReference ref, boolean supportActions)
- Overrides:
_crossrefEbnf
in classAbstractAntlrGrammarGenerator
-
_crossrefEbnf
protected java.lang.String _crossrefEbnf(org.eclipse.xtext.Keyword it, org.eclipse.xtext.CrossReference ref, boolean supportActions)
- Overrides:
_crossrefEbnf
in classAbstractAntlrGrammarGenerator
-
_crossrefEbnf
protected java.lang.String _crossrefEbnf(org.eclipse.xtext.TerminalRule it, org.eclipse.xtext.RuleCall call, org.eclipse.xtext.CrossReference ref, boolean supportActions)
-
_crossrefEbnf
protected java.lang.String _crossrefEbnf(org.eclipse.xtext.EnumRule it, org.eclipse.xtext.RuleCall call, org.eclipse.xtext.CrossReference ref, boolean supportActions)
-
_crossrefEbnf
protected java.lang.String _crossrefEbnf(org.eclipse.xtext.AbstractRule it, org.eclipse.xtext.RuleCall call, org.eclipse.xtext.CrossReference ref, boolean supportActions)
-
_ebnf2
protected java.lang.String _ebnf2(org.eclipse.xtext.Alternatives it, AntlrOptions options, boolean supportActions)
- Overrides:
_ebnf2
in classAbstractAntlrGrammarGenerator
-
_ebnf2
protected java.lang.String _ebnf2(org.eclipse.xtext.Assignment it, AntlrOptions options, boolean supportActions)
- Overrides:
_ebnf2
in classAbstractAntlrGrammarWithActionsGenerator
-
_ebnf2
protected java.lang.String _ebnf2(org.eclipse.xtext.Group it, AntlrOptions options, boolean supportActions)
- Overrides:
_ebnf2
in classAbstractAntlrGrammarWithActionsGenerator
-
_ebnf2
protected java.lang.String _ebnf2(org.eclipse.xtext.UnorderedGroup it, AntlrOptions options, boolean supportActions)
- Overrides:
_ebnf2
in classAbstractAntlrGrammarWithActionsGenerator
-
_ebnf2
protected java.lang.String _ebnf2(org.eclipse.xtext.RuleCall it, AntlrOptions options, boolean supportActions)
- Overrides:
_ebnf2
in classAbstractAntlrGrammarWithActionsGenerator
-
shouldBeSkipped
protected boolean shouldBeSkipped(org.eclipse.xtext.TerminalRule it, org.eclipse.xtext.Grammar grammar)
- Overrides:
shouldBeSkipped
in classAbstractAntlrGrammarGenerator
-
compileRule
protected java.lang.CharSequence compileRule(java.lang.Object it, org.eclipse.xtext.Grammar grammar, AntlrOptions options)
- Overrides:
compileRule
in classAbstractAntlrGrammarGenerator
-
assignmentEbnf
protected java.lang.String assignmentEbnf(org.eclipse.xtext.AbstractElement it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportsActions)
- Overrides:
assignmentEbnf
in classAbstractAntlrGrammarWithActionsGenerator
-
crossrefEbnf
protected java.lang.String crossrefEbnf(org.eclipse.xtext.AbstractElement it, org.eclipse.xtext.CrossReference ref, boolean supportActions)
- Overrides:
crossrefEbnf
in classAbstractAntlrGrammarGenerator
-
crossrefEbnf
protected java.lang.String crossrefEbnf(org.eclipse.xtext.AbstractRule it, org.eclipse.xtext.RuleCall call, org.eclipse.xtext.CrossReference ref, boolean supportActions)
- Overrides:
crossrefEbnf
in classAbstractAntlrGrammarWithActionsGenerator
-
ebnf2
protected java.lang.String ebnf2(org.eclipse.xtext.AbstractElement it, AntlrOptions options, boolean supportActions)
- Overrides:
ebnf2
in classAbstractAntlrGrammarWithActionsGenerator
-
-