org.eclipse.cdt.core.dom.ast.gnu.c
Class GCCLanguage
java.lang.Object
PlatformObject
org.eclipse.cdt.core.model.AbstractLanguage
org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage
org.eclipse.cdt.core.dom.ast.gnu.c.GCCLanguage
- All Implemented Interfaces:
- ICLanguageKeywords, ILanguage
public class GCCLanguage
- 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.c.GCCParserExtensionConfiguration |
C_GNU_PARSER_EXTENSION
|
protected static org.eclipse.cdt.core.dom.parser.c.GCCScannerExtensionConfiguration |
C_GNU_SCANNER_EXTENSION
|
static java.lang.String |
ID
|
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 GCCLanguage |
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.c.ICParserExtensionConfiguration |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
C_GNU_SCANNER_EXTENSION
protected static final org.eclipse.cdt.core.dom.parser.c.GCCScannerExtensionConfiguration C_GNU_SCANNER_EXTENSION
C_GNU_PARSER_EXTENSION
protected static final org.eclipse.cdt.core.dom.parser.c.GCCParserExtensionConfiguration C_GNU_PARSER_EXTENSION
ID
public static final java.lang.String ID
GCCLanguage
public GCCLanguage()
getDefault
public static GCCLanguage 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
.
getParserExtensionConfiguration
protected org.eclipse.cdt.core.dom.parser.c.ICParserExtensionConfiguration 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.
Copyright (c) IBM Corp. and others 2004, 2012. All Rights Reserved.