Eclipse CDT
Pre-release 3.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 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)
           
 Object getAdapter(Class adapter)
           
static GPPLanguage getDefault()
           
 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()
           
 
Methods inherited from class org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage
createModelBuilder, createParser, createScanner, getASTTranslationUnit, getASTTranslationUnit, getBuiltinTypes, 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 String ID
Constructor Detail

GPPLanguage

public GPPLanguage()
Method Detail

getDefault

public static GPPLanguage getDefault()

getAdapter

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

getId

public 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

protected org.eclipse.cdt.core.dom.parser.IScannerExtensionConfiguration getScannerExtensionConfiguration()
Specified by:
getScannerExtensionConfiguration in class org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage
Returns:
the scanner extension configuration for this language, may not return null

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

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
Pre-release 3.0

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