public interface IParserSettings2 extends IParserSettings
The first version of the interface was not marked with no-implement, so methods cannot be added to it. This version should be used going forward. It is marked no-implement and a Default implementation is provided. Clients should base their own implementations on Default in order to avoid being broken by futured additions to this interface.
IParserSettings2.Default
instead.Modifier and Type | Interface and Description |
---|---|
static class |
IParserSettings2.Default
An default implementation to be used as a base class by clients that want to
contribute parser settings.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaximumTokensPerTranslationUnit()
Returns the maximum number of tokens that should be created while parsing any one translation unit.
|
boolean |
shouldLimitTokensPerTranslationUnit()
Returns true if the parser should be aborted when a single translation unit has produced
more than
getMaximumTokensPerTranslationUnit() tokens. |
getMaximumTrivialExpressionsInAggregateInitializers
boolean shouldLimitTokensPerTranslationUnit()
getMaximumTokensPerTranslationUnit()
tokens.int getMaximumTokensPerTranslationUnit()
shouldLimitTokensPerTranslationUnit()
returns true.Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.