ILanguage
instead.@Deprecated public class CDOM extends Object implements IASTServiceProvider
IASTServiceProvider.UnsupportedDialectException
Modifier and Type | Field and Description |
---|---|
static int |
PARSE_SAVED_RESOURCES
Deprecated.
Constant
PARSE_SAVED_RESOURCES - Parse saved resources in the workspace |
static int |
PARSE_WORKING_COPY_WHENEVER_POSSIBLE
Deprecated.
Constant
PARSE_WORKING_COPY_WHENEVER_POSSIBLE - Parse working copy whenever possible for both
header files and the file in question as a translation unit. |
static int |
PARSE_WORKING_COPY_WITH_SAVED_INCLUSIONS
Deprecated.
Constant
PARSE_WORKING_COPY_WITH_SAVED_INCLUSIONS - Parse working copy for
translation unit, saved resources for all header files. |
Modifier and Type | Method and Description |
---|---|
IASTServiceProvider |
getASTService()
Deprecated.
|
ICodeReaderFactory |
getCodeReaderFactory(int key)
Deprecated.
This method always returns
null . |
IASTCompletionNode |
getCompletionNode(org.eclipse.core.resources.IFile fileToParse,
int offset,
ICodeReaderFactory fileCreator)
Deprecated.
Returns a parse tree that represents the content provided as parameters.
|
IASTCompletionNode |
getCompletionNode(org.eclipse.core.resources.IStorage fileToParse,
org.eclipse.core.resources.IProject project,
int offset,
ICodeReaderFactory fileCreator)
Deprecated.
Returns a parse tree that represents the content provided as parameters.
|
static CDOM |
getInstance()
Deprecated.
accessor for singleton instance
|
IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IFile fileToParse)
Deprecated.
Returns a parse tree that represents the content provided as parameters.
|
IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IFile fileToParse,
boolean parseComments)
Deprecated.
Returns a parse tree that represents the content provided as parameters.
|
IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IFile fileToParse,
ICodeReaderFactory fileCreator)
Deprecated.
Returns a parse tree that represents the content provided as parameters.
|
IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IFile fileToParse,
ICodeReaderFactory fileCreator,
boolean parseComments)
Deprecated.
Returns a parse tree that represents the content provided as parameters.
|
IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IFile fileToParse,
ICodeReaderFactory fileCreator,
IParserConfiguration configuration)
Deprecated.
Returns a parse tree that represents the content provided as parameters.
|
IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IStorage fileToParse,
org.eclipse.core.resources.IProject project)
Deprecated.
Returns a parse tree that represents the content provided as parameters.
|
IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IStorage fileToParse,
org.eclipse.core.resources.IProject project,
ICodeReaderFactory fileCreator)
Deprecated.
Returns a parse tree that represents the content provided as parameters.
|
void |
setWorkingCopyProvider(IWorkingCopyProvider workingCopyProvider)
Deprecated.
This method has no effect.
|
public static final int PARSE_SAVED_RESOURCES
PARSE_SAVED_RESOURCES
- Parse saved resources in the workspacepublic static final int PARSE_WORKING_COPY_WITH_SAVED_INCLUSIONS
PARSE_WORKING_COPY_WITH_SAVED_INCLUSIONS
- Parse working copy for
translation unit, saved resources for all header files.public static final int PARSE_WORKING_COPY_WHENEVER_POSSIBLE
PARSE_WORKING_COPY_WHENEVER_POSSIBLE
- Parse working copy whenever possible for both
header files and the file in question as a translation unit.public static CDOM getInstance()
public IASTServiceProvider getASTService()
public ICodeReaderFactory getCodeReaderFactory(int key)
null
.public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse) throws IASTServiceProvider.UnsupportedDialectException
IASTServiceProvider
getTranslationUnit
in interface IASTServiceProvider
fileToParse
- the file in questionIASTServiceProvider.UnsupportedDialectException
public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse, ICodeReaderFactory fileCreator) throws IASTServiceProvider.UnsupportedDialectException
IASTServiceProvider
getTranslationUnit
in interface IASTServiceProvider
fileToParse
- the file in questionfileCreator
- @see CDOM#getCodeReaderFactory(int)IASTServiceProvider.UnsupportedDialectException
public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse, ICodeReaderFactory fileCreator, IParserConfiguration configuration) throws IASTServiceProvider.UnsupportedDialectException
IASTServiceProvider
getTranslationUnit
in interface IASTServiceProvider
fileToParse
- the file in questionfileCreator
- @see CDOM#getCodeReaderFactory(int)configuration
- parser configuration provided rather than discovered by serviceIASTServiceProvider.UnsupportedDialectException
public IASTCompletionNode getCompletionNode(org.eclipse.core.resources.IFile fileToParse, int offset, ICodeReaderFactory fileCreator) throws IASTServiceProvider.UnsupportedDialectException
IASTServiceProvider
getCompletionNode
in interface IASTServiceProvider
fileToParse
- the file in questionoffset
- the offset at which you require completion atfileCreator
- @see CDOM#getCodeReaderFactory(int)IASTServiceProvider.UnsupportedDialectException
public IASTCompletionNode getCompletionNode(org.eclipse.core.resources.IStorage fileToParse, org.eclipse.core.resources.IProject project, int offset, ICodeReaderFactory fileCreator) throws IASTServiceProvider.UnsupportedDialectException
IASTServiceProvider
getCompletionNode
in interface IASTServiceProvider
fileToParse
- the file in questionproject
- the project containing the scanner infooffset
- the offset at which you require completion atfileCreator
- @see CDOM#getCodeReaderFactory(int)IASTServiceProvider.UnsupportedDialectException
public void setWorkingCopyProvider(IWorkingCopyProvider workingCopyProvider)
public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IStorage fileToParse, org.eclipse.core.resources.IProject project, ICodeReaderFactory fileCreator) throws IASTServiceProvider.UnsupportedDialectException
IASTServiceProvider
getTranslationUnit
in interface IASTServiceProvider
fileToParse
- the file in questionproject
- project handle to help us figure out build settingsfileCreator
- @see CDOM#getCodeReaderFactory(int)IASTServiceProvider.UnsupportedDialectException
public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IStorage fileToParse, org.eclipse.core.resources.IProject project) throws IASTServiceProvider.UnsupportedDialectException
IASTServiceProvider
getTranslationUnit
in interface IASTServiceProvider
fileToParse
- the file in questionproject
- project handle to help us figure out build settingsIASTServiceProvider.UnsupportedDialectException
public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse, boolean parseComments) throws IASTServiceProvider.UnsupportedDialectException
IASTServiceProvider
getTranslationUnit
in interface IASTServiceProvider
fileToParse
- the file in questionparseComments
- parse commtents flagIASTServiceProvider.UnsupportedDialectException
public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse, ICodeReaderFactory fileCreator, boolean parseComments) throws IASTServiceProvider.UnsupportedDialectException
IASTServiceProvider
getTranslationUnit
in interface IASTServiceProvider
fileToParse
- the file in questionfileCreator
- @see CDOM#getCodeReaderFactory(int)parseComments
- parse comments flagIASTServiceProvider.UnsupportedDialectException
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.