public class TerminalsParserConfiguration extends AbstractParserConfiguration
AbstractParserConfiguration.IInternalParserConfiguration
EMPTY_HIDDENS
Constructor and Description |
---|
TerminalsParserConfiguration(AbstractParserConfiguration.IInternalParserConfiguration configuration,
TerminalsGrammarAccess grammarAccess) |
Modifier and Type | Method and Description |
---|---|
void |
configureConsumers()
Initialize the created consumers.
|
void |
createNonTerminalConsumers()
Create any non-terminal consumers, that are required.
|
void |
createTerminalConsumers()
Create any terminal consumers, that are required.
|
TerminalsANY_OTHERConsumer |
getAnyOtherConsumer() |
TerminalsIDConsumer |
getIdConsumer() |
ITerminalConsumer[] |
getInitialHiddenTerminals()
Provides access to the initial (e.g.
|
TerminalsINTConsumer |
getIntConsumer() |
TerminalsML_COMMENTConsumer |
getMlCommentConsumer() |
INonTerminalConsumer |
getRootConsumer()
Return a references to the same and same again root consumer.
|
TerminalsSL_COMMENTConsumer |
getSlCommentConsumer() |
TerminalsSTRINGConsumer |
getStringConsumer() |
TerminalsWSConsumer |
getWsConsumer() |
createKeywordConsumer, createLiteralConsumer, getBacktracker, getConsumerUtil, getHiddenTokenHandler, getInput, getMarkerFactory, getTokenAcceptor, toArray
public TerminalsParserConfiguration(AbstractParserConfiguration.IInternalParserConfiguration configuration, TerminalsGrammarAccess grammarAccess)
public INonTerminalConsumer getRootConsumer()
IParserConfiguration
public void createNonTerminalConsumers()
IParserConfiguration
IParserConfiguration.createNonTerminalConsumers()
for any referenced
other parser configuration in this method.
It is ensured that IParserConfiguration.createTerminalConsumers()
is called before IParserConfiguration.createNonTerminalConsumers()
thus
the terminals can be used to set the hidden tokens per terminal.public void createTerminalConsumers()
IParserConfiguration
IParserConfiguration.configureConsumers()
will be called.public void configureConsumers()
IParserConfiguration
IParserConfiguration.createNonTerminalConsumers()
and IParserConfiguration.createTerminalConsumers()
was called before.public TerminalsIDConsumer getIdConsumer()
public TerminalsINTConsumer getIntConsumer()
public TerminalsSTRINGConsumer getStringConsumer()
public TerminalsML_COMMENTConsumer getMlCommentConsumer()
public TerminalsSL_COMMENTConsumer getSlCommentConsumer()
public TerminalsWSConsumer getWsConsumer()
public TerminalsANY_OTHERConsumer getAnyOtherConsumer()
public ITerminalConsumer[] getInitialHiddenTerminals()
IParserConfiguration
getInitialHiddenTerminals
in interface IParserConfiguration
getInitialHiddenTerminals
in class AbstractParserConfiguration