Package org.eclipse.cdt.core.parser
Interface IParserSettings2
- All Superinterfaces:
IParserSettings
- All Known Implementing Classes:
IParserSettings2.Default
Interface for providing settings for the parser.
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.
- Since:
- 5.7
- Restriction:
- Extend
IParserSettings2.Default
instead.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
An default implementation to be used as a base class by clients that want to contribute parser settings. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the maximum number of tokens that should be created while parsing any one translation unit.boolean
Returns true if the parser should be aborted when a single translation unit has produced more thangetMaximumTokensPerTranslationUnit()
tokens.Methods inherited from interface org.eclipse.cdt.core.parser.IParserSettings
getMaximumTrivialExpressionsInAggregateInitializers
-
Method Details
-
shouldLimitTokensPerTranslationUnit
boolean shouldLimitTokensPerTranslationUnit()Returns true if the parser should be aborted when a single translation unit has produced more thangetMaximumTokensPerTranslationUnit()
tokens. -
getMaximumTokensPerTranslationUnit
int getMaximumTokensPerTranslationUnit()Returns the maximum number of tokens that should be created while parsing any one translation unit. This value is used only whenshouldLimitTokensPerTranslationUnit()
returns true.
-