Class GPPLanguage
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.cdt.core.model.AbstractLanguage
org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage
org.eclipse.cdt.core.dom.ast.gnu.cpp.GPPLanguage
- All Implemented Interfaces:
ICLanguageKeywords,ILanguage,org.eclipse.core.runtime.IAdaptable
Concrete ILanguage implementation for the DOM C++ parser.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final GPPParserExtensionConfigurationprotected static final GPPScannerExtensionConfigurationstatic final intDeprecated.This was meant for internal use only.static final intDeprecated.This was meant for internal use only.static final StringFields inherited from interface org.eclipse.cdt.core.model.ILanguage
OPTION_ADD_COMMENTS, OPTION_IS_SOURCE_UNIT, OPTION_NO_IMAGE_LOCATIONS, OPTION_PARSE_INACTIVE_CODE, OPTION_SKIP_FUNCTION_BODIES, OPTION_SKIP_TRIVIAL_EXPRESSIONS_IN_AGGREGATE_INITIALIZERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ISourceCodeParsercreateParser(IScanner scanner, ParserMode parserMode, IParserLogService logService, IIndex index) protected ISourceCodeParsercreateParser(IScanner scanner, ParserMode parserMode, IParserLogService logService, IIndex index, int options, IParserSettings settings) <T> TgetAdapter(Class<T> adapter) static GPPLanguagegetId()Return the language id for this language.intReturn the id of the linkage this language contributes to.protected ICPPParserExtensionConfigurationReturns the extension configuration used for creating the parser.protected ParserLanguageprotected IScannerExtensionConfigurationDeprecated.Since 5.4 not called by the framework.protected IScannerExtensionConfigurationMethods inherited from class org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage
createModelBuilder, createParser, createParser, createScanner, createScanner, getASTTranslationUnit, getASTTranslationUnit, getASTTranslationUnit, getBuiltinTypes, getCompletionNode, getCompletionNode, getKeywords, getPreprocessorKeywords, getSelectedNamesMethods inherited from class org.eclipse.cdt.core.model.AbstractLanguage
getName
-
Field Details
-
CPP_GNU_SCANNER_EXTENSION
-
CPP_GNU_PARSER_EXTENSION
-
ID
- See Also:
-
GNU_LATEST_VERSION_MAJOR
Deprecated.This was meant for internal use only.- Since:
- 5.6
- See Also:
-
GNU_LATEST_VERSION_MINOR
Deprecated.This was meant for internal use only.- Since:
- 5.6
- See Also:
-
-
Constructor Details
-
GPPLanguage
public GPPLanguage()
-
-
Method Details
-
getDefault
-
getAdapter
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable- Overrides:
getAdapterin classAbstractCLikeLanguage
-
getId
Description copied from interface:ILanguageReturn the language id for this language. This is to differentiate languages from each other. -
getLinkageID
public int getLinkageID()Description copied from interface:ILanguageReturn the id of the linkage this language contributes to. This is especially important for languages that write to the index.- See Also:
-
getScannerExtensionConfiguration
Deprecated.Since 5.4 not called by the framework. OverridegetScannerExtensionConfiguration(IScannerInfo)instead.- Overrides:
getScannerExtensionConfigurationin classAbstractCLikeLanguage- Restriction:
- This method is not intended to be re-implemented or extended by clients.
-
getScannerExtensionConfiguration
- Overrides:
getScannerExtensionConfigurationin classAbstractCLikeLanguage- Returns:
- the scanner extension configuration for this language. May not return
null. - Since:
- 5.4
-
getParserExtensionConfiguration
Returns the extension configuration used for creating the parser.- Since:
- 5.1
-
createParser
protected ISourceCodeParser createParser(IScanner scanner, ParserMode parserMode, IParserLogService logService, IIndex index) - Specified by:
createParserin classAbstractCLikeLanguage- Returns:
- the actual parser object.
-
createParser
protected ISourceCodeParser createParser(IScanner scanner, ParserMode parserMode, IParserLogService logService, IIndex index, int options, IParserSettings settings) - Overrides:
createParserin classAbstractCLikeLanguage- Returns:
- the actual parser object, configured with additional settings.
-
getParserLanguage
- Specified by:
getParserLanguagein classAbstractCLikeLanguage- Returns:
- The ParserLanguage value corresponding to the language supported.
-