public class ContentAssistParserGeneratorFragment extends AbstractAntlrGeneratorFragmentEx
IGeneratorFragment
to generate a lightweight AntLR based parser used in content assist.Constructor and Description |
---|
ContentAssistParserGeneratorFragment() |
Modifier and Type | Method and Description |
---|---|
void |
generate(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
can be used to generate whatever necessary
|
java.util.Set<Binding> |
getGuiceBindingsUi(Grammar grammar)
return a map containing the contributed guice bindings for the ui part created in this generator fragment
|
protected java.util.List<java.lang.Object> |
getParameters(Grammar grammar) |
java.lang.String[] |
getRequiredBundlesIde(Grammar grammar)
return the bundles this fragment requires for ide services
|
boolean |
isPartialParsing() |
void |
setPartialParsing(boolean partialParsing)
Whether to use a partial parsing approach, improving performance for large files.
|
getFragmentHelper, getLexerFileNameSuffix, getParserFileNameSuffix, isDetectSyntheticTerminals, registerNaming, setDetectSyntheticTerminals, setFragmentHelper
addAntlrParam, checkConfiguration, checkGrammar, containsUnorderedGroup, getAntlrParams, getAntlrTool, getCodeQualityHelper, getEncoding, getLineDelimiter, getOptions, hasParameterizedRules, hasProductionRules, improveCodeQuality, normalizeLineDelimiters, normalizeLineDelimiters, normalizeTokens, setAntlrTool, setCodeQualityHelper, setOptions, simplifyUnorderedGroupPredicates, simplifyUnorderedGroupPredicates, simplifyUnorderedGroupPredicatesIfRequired, simplifyUnorderedGroupPredicatesIfRequired, splitLexerClassFile, splitLexerClassFile, splitParserAndLexerIfEnabled, splitParserAndLexerIfEnabled, splitParserAndLexerIfEnabled, splitParserAndLexerIfEnabled, splitParserClassFile, splitParserClassFile, suppressWarnings, suppressWarnings, suppressWarnings, suppressWarnings
addToPluginXmlRt, addToPluginXmlTests, addToPluginXmlUi, addToStandaloneSetup, getNaming, getTemplate, readFileIntoString, writeStringIntoFile
addToPluginXmlRt, addToPluginXmlUi, addToStandaloneSetup, generate, getExportedPackagesIde, getExportedPackagesRt, getExportedPackagesTests, getExportedPackagesUi, getGuiceBindingsRt, getImportedPackagesIde, getImportedPackagesRt, getImportedPackagesTests, getImportedPackagesUi, getRequiredBundlesRt, getRequiredBundlesTests, getRequiredBundlesUi
public ContentAssistParserGeneratorFragment()
public void setPartialParsing(boolean partialParsing)
public boolean isPartialParsing()
public void generate(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
IGeneratorFragment
generate
in interface IGeneratorFragment
generate
in class AbstractAntlrGeneratorFragment
ctx
- - the execution context to usepublic java.util.Set<Binding> getGuiceBindingsUi(Grammar grammar)
IGeneratorFragment
getGuiceBindingsUi
in interface IGeneratorFragment
getGuiceBindingsUi
in class DefaultGeneratorFragment
public java.lang.String[] getRequiredBundlesIde(Grammar grammar)
IGeneratorFragmentExtension3
getRequiredBundlesIde
in interface IGeneratorFragmentExtension3
getRequiredBundlesIde
in class DefaultGeneratorFragment
protected java.util.List<java.lang.Object> getParameters(Grammar grammar)
getParameters
in class AbstractAntlrGeneratorFragmentEx