org.eclipse.cdt.core.dom.ast.gnu.cpp
Class GPPLanguage
java.lang.Object
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
public class GPPLanguage
- extends org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage
Concrete ILanguage implementation for the DOM C++ parser.
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, createScanner, getASTTranslationUnit, getASTTranslationUnit, getASTTranslationUnit, getBuiltinTypes, getCompletionNode, getCompletionNode, getKeywords, getPreprocessorKeywords, getSelectedNames |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
GPPLanguage
public GPPLanguage()
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.
Copyright (c) IBM Corp. and others 2004, 2010. All Rights Reserved.