Eclipse CDT
7.0

org.eclipse.cdt.core.dom.ast.gnu.cpp
Class GPPLanguage

java.lang.Object
  extended by PlatformObject
      extended by org.eclipse.cdt.core.model.AbstractLanguage
          extended by org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage
              extended by org.eclipse.cdt.core.dom.ast.gnu.cpp.GPPLanguage
All Implemented Interfaces:
ICLanguageKeywords, ILanguage

public class GPPLanguage
extends org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage

Concrete ILanguage implementation for the DOM C++ parser.


Field Summary
protected static org.eclipse.cdt.core.dom.parser.cpp.GPPParserExtensionConfiguration CPP_GNU_PARSER_EXTENSION
           
protected static org.eclipse.cdt.core.dom.parser.cpp.GPPScannerExtensionConfiguration CPP_GNU_SCANNER_EXTENSION
           
static int GNU_LATEST_VERSION_MAJOR
           
static int GNU_LATEST_VERSION_MINOR
           
static java.lang.String ID
           
 
Fields 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
GPPLanguage()
           
 
Method Summary
protected  org.eclipse.cdt.core.dom.parser.ISourceCodeParser createParser(org.eclipse.cdt.core.parser.IScanner scanner, org.eclipse.cdt.core.parser.ParserMode parserMode, org.eclipse.cdt.core.parser.IParserLogService logService, org.eclipse.cdt.core.index.IIndex index)
           
protected  org.eclipse.cdt.core.dom.parser.ISourceCodeParser createParser(org.eclipse.cdt.core.parser.IScanner scanner, org.eclipse.cdt.core.parser.ParserMode parserMode, org.eclipse.cdt.core.parser.IParserLogService logService, org.eclipse.cdt.core.index.IIndex index, int options, org.eclipse.cdt.core.parser.IParserSettings settings)
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
static GPPLanguage getDefault()
           
 java.lang.String getId()
          Return the language id for this language.
 int getLinkageID()
          Return the id of the linkage this language contributes to.
protected  org.eclipse.cdt.core.dom.parser.cpp.ICPPParserExtensionConfiguration getParserExtensionConfiguration()
          Returns the extension configuration used for creating the parser.
protected  org.eclipse.cdt.core.parser.ParserLanguage getParserLanguage()
           
protected  org.eclipse.cdt.core.dom.parser.IScannerExtensionConfiguration getScannerExtensionConfiguration()
          Deprecated. Since 5.4 not called by the framework. Override getScannerExtensionConfiguration(IScannerInfo) instead.
protected  org.eclipse.cdt.core.dom.parser.IScannerExtensionConfiguration getScannerExtensionConfiguration(org.eclipse.cdt.core.parser.IScannerInfo info)
           
 
Methods inherited from class org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage
createModelBuilder, createParser, createParser, createScanner, createScanner, getASTTranslationUnit, getASTTranslationUnit, getASTTranslationUnit, getBuiltinTypes, getCompletionNode, getCompletionNode, getKeywords, getPreprocessorKeywords, getSelectedNames
 
Methods inherited from class org.eclipse.cdt.core.model.AbstractLanguage
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CPP_GNU_SCANNER_EXTENSION

protected static final org.eclipse.cdt.core.dom.parser.cpp.GPPScannerExtensionConfiguration CPP_GNU_SCANNER_EXTENSION

CPP_GNU_PARSER_EXTENSION

protected static final org.eclipse.cdt.core.dom.parser.cpp.GPPParserExtensionConfiguration CPP_GNU_PARSER_EXTENSION

ID

public static final java.lang.String ID

GNU_LATEST_VERSION_MAJOR

public static final int GNU_LATEST_VERSION_MAJOR
Since:
5.6
See Also:
Constant Field Values

GNU_LATEST_VERSION_MINOR

public static final int GNU_LATEST_VERSION_MINOR
Since:
5.6
See Also:
Constant Field Values
Constructor Detail

GPPLanguage

public GPPLanguage()
Method Detail

getDefault

public static GPPLanguage getDefault()

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Overrides:
getAdapter in class org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage

getId

public java.lang.String getId()
Description copied from interface: ILanguage
Return the language id for this language. This is to differentiate languages from each other.


getLinkageID

public int getLinkageID()
Description copied from interface: ILanguage
Return the id of the linkage this language contributes to. This is especially important for languages that write to the index.

See Also:
ILinkage

getScannerExtensionConfiguration

@Deprecated
protected org.eclipse.cdt.core.dom.parser.IScannerExtensionConfiguration getScannerExtensionConfiguration()
Deprecated. Since 5.4 not called by the framework. Override getScannerExtensionConfiguration(IScannerInfo) instead.

Overrides:
getScannerExtensionConfiguration in class org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage

getScannerExtensionConfiguration

protected org.eclipse.cdt.core.dom.parser.IScannerExtensionConfiguration getScannerExtensionConfiguration(org.eclipse.cdt.core.parser.IScannerInfo info)
Overrides:
getScannerExtensionConfiguration in class org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage
Returns:
the scanner extension configuration for this language. May not return null.
Since:
5.4

getParserExtensionConfiguration

protected org.eclipse.cdt.core.dom.parser.cpp.ICPPParserExtensionConfiguration getParserExtensionConfiguration()
Returns the extension configuration used for creating the parser.

Since:
5.1

createParser

protected org.eclipse.cdt.core.dom.parser.ISourceCodeParser createParser(org.eclipse.cdt.core.parser.IScanner scanner,
                                                                         org.eclipse.cdt.core.parser.ParserMode parserMode,
                                                                         org.eclipse.cdt.core.parser.IParserLogService logService,
                                                                         org.eclipse.cdt.core.index.IIndex index)
Specified by:
createParser in class org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage

createParser

protected org.eclipse.cdt.core.dom.parser.ISourceCodeParser createParser(org.eclipse.cdt.core.parser.IScanner scanner,
                                                                         org.eclipse.cdt.core.parser.ParserMode parserMode,
                                                                         org.eclipse.cdt.core.parser.IParserLogService logService,
                                                                         org.eclipse.cdt.core.index.IIndex index,
                                                                         int options,
                                                                         org.eclipse.cdt.core.parser.IParserSettings settings)
Overrides:
createParser in class org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage

getParserLanguage

protected org.eclipse.cdt.core.parser.ParserLanguage getParserLanguage()
Specified by:
getParserLanguage in class org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage
Returns:
The ParserLanguage value corresponding to the language supported.

Eclipse CDT
7.0

Copyright (c) IBM Corp. and others 2004, 2012. All Rights Reserved.