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)
Construct an AST for the source code provided by reader . |
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
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
- 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:
reader
- source code to be parsed.scanInfo
- provides include paths and defined symbols.fileCreator
- factory that provides CodeReaders for files included
by the source code being parsed.index
- (optional) index to use to provide support for ambiguity
resolution.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
Copyright (c) IBM Corp. and others 2004. All Rights Reserved.