Class AbstractAntlrGrammarWithActionsGenerator
- java.lang.Object
-
- org.eclipse.xtext.xtext.generator.parser.antlr.AbstractAntlrGrammarGenerator
-
- org.eclipse.xtext.xtext.generator.parser.antlr.AbstractAntlrGrammarWithActionsGenerator
-
- Direct Known Subclasses:
AntlrContentAssistGrammarGenerator
,AntlrGrammarGenerator
public abstract class AbstractAntlrGrammarWithActionsGenerator extends AbstractAntlrGrammarGenerator
-
-
Field Summary
-
Fields inherited from class org.eclipse.xtext.xtext.generator.parser.antlr.AbstractAntlrGrammarGenerator
_grammarAccessExtensions, _syntheticTerminalDetector, _xtextGeneratorNaming, keywordHelper
-
-
Constructor Summary
Constructors Constructor Description AbstractAntlrGrammarWithActionsGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
_assignmentEbnf(org.eclipse.xtext.Alternatives it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportActions)
protected java.lang.String
_assignmentEbnf(org.eclipse.xtext.RuleCall it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportActions)
protected java.lang.CharSequence
_compileInitHiddenTokens(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
protected java.lang.CharSequence
_compileInitHiddenTokens(org.eclipse.xtext.ParserRule it, AntlrOptions options)
protected java.lang.CharSequence
_compileInitUnorderedGroups(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
protected java.lang.CharSequence
_compileInitUnorderedGroups(org.eclipse.xtext.ParserRule it, AntlrOptions options)
protected java.lang.CharSequence
_compileRestoreHiddenTokens(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
protected java.lang.CharSequence
_compileRestoreHiddenTokens(org.eclipse.xtext.ParserRule it, AntlrOptions options)
protected java.lang.CharSequence
_compileRestoreUnorderedGroups(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
protected java.lang.CharSequence
_compileRestoreUnorderedGroups(org.eclipse.xtext.ParserRule it, AntlrOptions options)
protected java.lang.String
_dataTypeEbnf2(org.eclipse.xtext.Group it, boolean supportActions)
protected java.lang.String
_dataTypeEbnf2(org.eclipse.xtext.RuleCall it, boolean supportActions)
protected java.lang.String
_dataTypeEbnf2(org.eclipse.xtext.UnorderedGroup it, 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 boolean
_mustBeParenthesized(org.eclipse.xtext.AbstractElement it)
protected boolean
_mustBeParenthesized(org.eclipse.xtext.Alternatives it)
protected boolean
_mustBeParenthesized(org.eclipse.xtext.Assignment it)
protected boolean
_mustBeParenthesized(org.eclipse.xtext.Group it)
protected boolean
_mustBeParenthesized(org.eclipse.xtext.Keyword it)
protected boolean
_mustBeParenthesized(org.eclipse.xtext.RuleCall it)
protected java.lang.String
assignmentEbnf(org.eclipse.xtext.AbstractElement it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportActions)
protected java.lang.CharSequence
compileEntryFinally(org.eclipse.xtext.ParserRule it, AntlrOptions options)
protected java.lang.CharSequence
compileEntryInit(org.eclipse.xtext.ParserRule it, AntlrOptions options)
protected java.lang.String
compileFinally(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
protected java.lang.String
compileInit(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
protected java.lang.CharSequence
compileInitHiddenTokens(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
protected java.lang.CharSequence
compileInitUnorderedGroups(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
protected java.lang.CharSequence
compileRestoreHiddenTokens(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
protected java.lang.CharSequence
compileRestoreUnorderedGroups(org.eclipse.xtext.AbstractRule it, 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
ebnf2(org.eclipse.xtext.AbstractElement it, AntlrOptions options, boolean supportActions)
protected java.lang.String
getCurrentType()
protected boolean
isPassCurrentIntoFragment()
boolean
mustBeParenthesized(org.eclipse.xtext.AbstractElement it)
-
Methods inherited from class org.eclipse.xtext.xtext.generator.parser.antlr.AbstractAntlrGrammarGenerator
_assignmentEbnf, _assignmentEbnf, _assignmentEbnf, _assignmentEbnf, _assignmentEbnf, _compileRule, _compileRule, _compileRule, _compileRule, _crossrefEbnf, _crossrefEbnf, _crossrefEbnf, _crossrefEbnf, _dataTypeEbnf2, _dataTypeEbnf2, _dataTypeEbnf2, _ebnf2, _ebnf2, _ebnf2, _ebnf2, _ebnf2, compileEBNF, compileKeywordRules, compileLexer, compileLexerHeader, compileLexerImports, compileLexerOptions, compileParser, compileParserHeader, compileParserImports, compileParserMembers, compileParserOptions, compileRule, compileRuleCatch, compileRules, compileTerminalRules, compileTokens, crossrefEbnf, dataTypeEbnf, dataTypeEbnf2, dataTypeEbnfPredicate, ebnf, ebnf, ebnfPredicate, generate, getGrammarNaming, isCombinedGrammar, isParserBackTracking, shouldBeSkipped, toAntlrKeywordRule
-
-
-
-
Method Detail
-
compileInit
protected java.lang.String compileInit(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
- Overrides:
compileInit
in classAbstractAntlrGrammarGenerator
-
compileEntryInit
protected java.lang.CharSequence compileEntryInit(org.eclipse.xtext.ParserRule it, AntlrOptions options)
-
_compileInitHiddenTokens
protected java.lang.CharSequence _compileInitHiddenTokens(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
-
_compileInitHiddenTokens
protected java.lang.CharSequence _compileInitHiddenTokens(org.eclipse.xtext.ParserRule it, AntlrOptions options)
-
_compileInitUnorderedGroups
protected java.lang.CharSequence _compileInitUnorderedGroups(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
-
_compileInitUnorderedGroups
protected java.lang.CharSequence _compileInitUnorderedGroups(org.eclipse.xtext.ParserRule it, AntlrOptions options)
-
compileFinally
protected java.lang.String compileFinally(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
- Overrides:
compileFinally
in classAbstractAntlrGrammarGenerator
-
compileEntryFinally
protected java.lang.CharSequence compileEntryFinally(org.eclipse.xtext.ParserRule it, AntlrOptions options)
-
_compileRestoreHiddenTokens
protected java.lang.CharSequence _compileRestoreHiddenTokens(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
-
_compileRestoreHiddenTokens
protected java.lang.CharSequence _compileRestoreHiddenTokens(org.eclipse.xtext.ParserRule it, AntlrOptions options)
-
_compileRestoreUnorderedGroups
protected java.lang.CharSequence _compileRestoreUnorderedGroups(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
-
_compileRestoreUnorderedGroups
protected java.lang.CharSequence _compileRestoreUnorderedGroups(org.eclipse.xtext.ParserRule it, AntlrOptions options)
-
_dataTypeEbnf2
protected java.lang.String _dataTypeEbnf2(org.eclipse.xtext.Group it, boolean supportActions)
- Overrides:
_dataTypeEbnf2
in classAbstractAntlrGrammarGenerator
-
_dataTypeEbnf2
protected java.lang.String _dataTypeEbnf2(org.eclipse.xtext.UnorderedGroup it, boolean supportActions)
- Overrides:
_dataTypeEbnf2
in classAbstractAntlrGrammarGenerator
-
_ebnf2
protected java.lang.String _ebnf2(org.eclipse.xtext.Group it, AntlrOptions options, boolean supportActions)
- Overrides:
_ebnf2
in classAbstractAntlrGrammarGenerator
-
_ebnf2
protected java.lang.String _ebnf2(org.eclipse.xtext.UnorderedGroup it, AntlrOptions options, boolean supportActions)
- Overrides:
_ebnf2
in classAbstractAntlrGrammarGenerator
-
_ebnf2
protected java.lang.String _ebnf2(org.eclipse.xtext.RuleCall 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 classAbstractAntlrGrammarGenerator
-
_dataTypeEbnf2
protected java.lang.String _dataTypeEbnf2(org.eclipse.xtext.RuleCall it, boolean supportActions)
- Overrides:
_dataTypeEbnf2
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 classAbstractAntlrGrammarGenerator
-
_assignmentEbnf
protected java.lang.String _assignmentEbnf(org.eclipse.xtext.RuleCall it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportActions)
- Overrides:
_assignmentEbnf
in classAbstractAntlrGrammarGenerator
-
_assignmentEbnf
protected java.lang.String _assignmentEbnf(org.eclipse.xtext.Alternatives it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportActions)
- Overrides:
_assignmentEbnf
in classAbstractAntlrGrammarGenerator
-
isPassCurrentIntoFragment
protected boolean isPassCurrentIntoFragment()
-
getCurrentType
protected java.lang.String getCurrentType()
-
_mustBeParenthesized
protected boolean _mustBeParenthesized(org.eclipse.xtext.AbstractElement it)
- Overrides:
_mustBeParenthesized
in classAbstractAntlrGrammarGenerator
-
_mustBeParenthesized
protected boolean _mustBeParenthesized(org.eclipse.xtext.Group it)
- Overrides:
_mustBeParenthesized
in classAbstractAntlrGrammarGenerator
-
_mustBeParenthesized
protected boolean _mustBeParenthesized(org.eclipse.xtext.Assignment it)
- Overrides:
_mustBeParenthesized
in classAbstractAntlrGrammarGenerator
-
_mustBeParenthesized
protected boolean _mustBeParenthesized(org.eclipse.xtext.Alternatives it)
- Overrides:
_mustBeParenthesized
in classAbstractAntlrGrammarGenerator
-
_mustBeParenthesized
protected boolean _mustBeParenthesized(org.eclipse.xtext.Keyword it)
-
_mustBeParenthesized
protected boolean _mustBeParenthesized(org.eclipse.xtext.RuleCall it)
-
compileInitHiddenTokens
protected java.lang.CharSequence compileInitHiddenTokens(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
-
compileInitUnorderedGroups
protected java.lang.CharSequence compileInitUnorderedGroups(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
-
compileRestoreHiddenTokens
protected java.lang.CharSequence compileRestoreHiddenTokens(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
-
compileRestoreUnorderedGroups
protected java.lang.CharSequence compileRestoreUnorderedGroups(org.eclipse.xtext.AbstractRule it, AntlrOptions options)
-
ebnf2
protected java.lang.String ebnf2(org.eclipse.xtext.AbstractElement it, AntlrOptions options, boolean supportActions)
- Overrides:
ebnf2
in classAbstractAntlrGrammarGenerator
-
assignmentEbnf
protected java.lang.String assignmentEbnf(org.eclipse.xtext.AbstractElement it, org.eclipse.xtext.Assignment assignment, AntlrOptions options, boolean supportActions)
- Overrides:
assignmentEbnf
in classAbstractAntlrGrammarGenerator
-
mustBeParenthesized
public boolean mustBeParenthesized(org.eclipse.xtext.AbstractElement it)
- Overrides:
mustBeParenthesized
in classAbstractAntlrGrammarGenerator
-
-