public abstract class AbstractLanguage extends PlatformObject implements 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 and Description |
|---|
AbstractLanguage() |
| Modifier and Type | Method and Description |
|---|---|
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)
|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateModelBuilder, getASTTranslationUnit, getCompletionNode, getId, getLinkageID, getSelectedNamespublic java.lang.String getName()
@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
getASTTranslationUnit(FileContent, IScannerInfo,
IncludeFileContentProvider, IIndex, int, IParserLogService)getASTTranslationUnit in interface ILanguageCoreExceptionpublic 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
ILanguagereader.
As an option you can supplygetASTTranslationUnit in interface ILanguagecontent - 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 - loggerCoreExceptionpublic 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
ILanguagegetCompletionNode in interface ILanguageCoreExceptionCopyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.