org.eclipse.cdt.core.model
Class AbstractLanguage
java.lang.Object
PlatformObject
org.eclipse.cdt.core.model.AbstractLanguage
- All Implemented Interfaces:
- ILanguage
- Direct Known Subclasses:
- org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage, AssemblyLanguage
public abstract class AbstractLanguage
- extends PlatformObject
- implements ILanguage
Models the differences between various languages.
- Since:
- 4.0
Method Summary |
IASTTranslationUnit |
getASTTranslationUnit(org.eclipse.cdt.core.parser.CodeReader reader,
org.eclipse.cdt.core.parser.IScannerInfo scanInfo,
org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator,
org.eclipse.cdt.core.index.IIndex index,
int options,
org.eclipse.cdt.core.parser.IParserLogService log)
Deprecated. replaced by getASTTranslationUnit(FileContent, IScannerInfo,
IncludeFileContentProvider, IIndex, int, IParserLogService) |
IASTTranslationUnit |
getASTTranslationUnit(org.eclipse.cdt.core.parser.FileContent content,
org.eclipse.cdt.core.parser.IScannerInfo scanInfo,
org.eclipse.cdt.core.parser.IncludeFileContentProvider fileCreator,
org.eclipse.cdt.core.index.IIndex index,
int options,
org.eclipse.cdt.core.parser.IParserLogService log)
Construct an AST for the source code provided by reader . |
IASTCompletionNode |
getCompletionNode(org.eclipse.cdt.core.parser.FileContent reader,
org.eclipse.cdt.core.parser.IScannerInfo scanInfo,
org.eclipse.cdt.core.parser.IncludeFileContentProvider fileCreator,
org.eclipse.cdt.core.index.IIndex index,
org.eclipse.cdt.core.parser.IParserLogService log,
int offset)
Return the AST completion node for the given offset. |
java.lang.String |
getName()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLanguage
public AbstractLanguage()
getName
public java.lang.String getName()
- Specified by:
getName
in interface ILanguage
- Returns:
- the human readable name corresponding to this language, suitable for display.
getASTTranslationUnit
@Deprecated
public IASTTranslationUnit getASTTranslationUnit(org.eclipse.cdt.core.parser.CodeReader reader,
org.eclipse.cdt.core.parser.IScannerInfo scanInfo,
org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator,
org.eclipse.cdt.core.index.IIndex index,
int options,
org.eclipse.cdt.core.parser.IParserLogService log)
throws CoreException
- Deprecated. replaced by
getASTTranslationUnit(FileContent, IScannerInfo,
IncludeFileContentProvider, IIndex, int, IParserLogService)
- Specified by:
getASTTranslationUnit
in interface ILanguage
- Throws:
CoreException
getASTTranslationUnit
public IASTTranslationUnit getASTTranslationUnit(org.eclipse.cdt.core.parser.FileContent content,
org.eclipse.cdt.core.parser.IScannerInfo scanInfo,
org.eclipse.cdt.core.parser.IncludeFileContentProvider fileCreator,
org.eclipse.cdt.core.index.IIndex index,
int options,
org.eclipse.cdt.core.parser.IParserLogService log)
throws CoreException
- Description copied from interface:
ILanguage
- Construct an AST for the source code provided by
reader
.
As an option you can supply
- Specified by:
getASTTranslationUnit
in interface ILanguage
- Parameters:
content
- source code to be parsed.scanInfo
- provides include paths and defined symbols.fileCreator
- factory that provides file content for files includedindex
- (optional) index to use to lookup symbols external to the tu.options
- A combination of
ILanguage.OPTION_SKIP_FUNCTION_BODIES
,
ILanguage.OPTION_NO_IMAGE_LOCATIONS
, ILanguage.OPTION_IS_SOURCE_UNIT
,
or 0
.log
- logger
- Returns:
- an AST for the source code provided by reader.
- Throws:
CoreException
- Since:
- 5.2
getCompletionNode
public IASTCompletionNode getCompletionNode(org.eclipse.cdt.core.parser.FileContent reader,
org.eclipse.cdt.core.parser.IScannerInfo scanInfo,
org.eclipse.cdt.core.parser.IncludeFileContentProvider fileCreator,
org.eclipse.cdt.core.index.IIndex index,
org.eclipse.cdt.core.parser.IParserLogService log,
int offset)
throws CoreException
- Description copied from interface:
ILanguage
- Return the AST completion node for the given offset.
- Specified by:
getCompletionNode
in interface ILanguage
- Throws:
CoreException
- Since:
- 5.2
Copyright (c) IBM Corp. and others 2004, 2012. All Rights Reserved.