Package org.eclipse.cdt.core.dom
Class CDOM
java.lang.Object
org.eclipse.cdt.core.dom.CDOM
- All Implemented Interfaces:
IASTServiceProvider
Deprecated.
- Restriction:
- This class is not intended to be referenced by clients.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.IASTServiceProvider
IASTServiceProvider.UnsupportedDialectException
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.ConstantPARSE_SAVED_RESOURCES
- Parse saved resources in the workspacestatic final int
Deprecated.ConstantPARSE_WORKING_COPY_WHENEVER_POSSIBLE
- Parse working copy whenever possible for both header files and the file in question as a translation unit.static final int
Deprecated.ConstantPARSE_WORKING_COPY_WITH_SAVED_INCLUSIONS
- Parse working copy for translation unit, saved resources for all header files. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getCodeReaderFactory
(int key) Deprecated.This method always returnsnull
.getCompletionNode
(org.eclipse.core.resources.IFile fileToParse, int offset, ICodeReaderFactory fileCreator) Deprecated.Returns a parse tree that represents the content provided as parameters.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
Deprecated.accessor for singleton instancegetTranslationUnit
(org.eclipse.core.resources.IFile fileToParse) Deprecated.Returns a parse tree that represents the content provided as parameters.getTranslationUnit
(org.eclipse.core.resources.IFile fileToParse, boolean parseComments) Deprecated.Returns a parse tree that represents the content provided as parameters.getTranslationUnit
(org.eclipse.core.resources.IFile fileToParse, ICodeReaderFactory fileCreator) Deprecated.Returns a parse tree that represents the content provided as parameters.getTranslationUnit
(org.eclipse.core.resources.IFile fileToParse, ICodeReaderFactory fileCreator, boolean parseComments) Deprecated.Returns a parse tree that represents the content provided as parameters.getTranslationUnit
(org.eclipse.core.resources.IFile fileToParse, ICodeReaderFactory fileCreator, IParserConfiguration configuration) Deprecated.Returns a parse tree that represents the content provided as parameters.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.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.
-
Field Details
-
PARSE_SAVED_RESOURCES
public static final int PARSE_SAVED_RESOURCESDeprecated.ConstantPARSE_SAVED_RESOURCES
- Parse saved resources in the workspace- See Also:
-
PARSE_WORKING_COPY_WITH_SAVED_INCLUSIONS
public static final int PARSE_WORKING_COPY_WITH_SAVED_INCLUSIONSDeprecated.ConstantPARSE_WORKING_COPY_WITH_SAVED_INCLUSIONS
- Parse working copy for translation unit, saved resources for all header files.- See Also:
-
PARSE_WORKING_COPY_WHENEVER_POSSIBLE
public static final int PARSE_WORKING_COPY_WHENEVER_POSSIBLEDeprecated.ConstantPARSE_WORKING_COPY_WHENEVER_POSSIBLE
- Parse working copy whenever possible for both header files and the file in question as a translation unit.- See Also:
-
-
Method Details
-
getInstance
Deprecated.accessor for singleton instance- Returns:
- instance
-
getASTService
Deprecated.- Returns:
- IASTServiceProvider, the mechanism for obtaining an AST
-
getCodeReaderFactory
Deprecated.This method always returnsnull
. -
getTranslationUnit
public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse) throws IASTServiceProvider.UnsupportedDialectException Deprecated.Description copied from interface:IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.- Specified by:
getTranslationUnit
in interfaceIASTServiceProvider
- Parameters:
fileToParse
- the file in question- Returns:
- syntactical parse tree
- Throws:
IASTServiceProvider.UnsupportedDialectException
-
getTranslationUnit
public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse, ICodeReaderFactory fileCreator) throws IASTServiceProvider.UnsupportedDialectException Deprecated.Description copied from interface:IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.- Specified by:
getTranslationUnit
in interfaceIASTServiceProvider
- Parameters:
fileToParse
- the file in questionfileCreator
- @see CDOM#getCodeReaderFactory(int)- Returns:
- syntactical parse tree
- Throws:
IASTServiceProvider.UnsupportedDialectException
-
getTranslationUnit
public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse, ICodeReaderFactory fileCreator, IParserConfiguration configuration) throws IASTServiceProvider.UnsupportedDialectException Deprecated.Description copied from interface:IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.- Specified by:
getTranslationUnit
in interfaceIASTServiceProvider
- Parameters:
fileToParse
- the file in questionfileCreator
- @see CDOM#getCodeReaderFactory(int)configuration
- parser configuration provided rather than discovered by service- Returns:
- syntactical parse tree
- Throws:
IASTServiceProvider.UnsupportedDialectException
-
getCompletionNode
public IASTCompletionNode getCompletionNode(org.eclipse.core.resources.IFile fileToParse, int offset, ICodeReaderFactory fileCreator) throws IASTServiceProvider.UnsupportedDialectException Deprecated.Description copied from interface:IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.- Specified by:
getCompletionNode
in interfaceIASTServiceProvider
- Parameters:
fileToParse
- the file in questionoffset
- the offset at which you require completion atfileCreator
- @see CDOM#getCodeReaderFactory(int)- Returns:
- syntactical parse tree
- Throws:
IASTServiceProvider.UnsupportedDialectException
-
getCompletionNode
public IASTCompletionNode getCompletionNode(org.eclipse.core.resources.IStorage fileToParse, org.eclipse.core.resources.IProject project, int offset, ICodeReaderFactory fileCreator) throws IASTServiceProvider.UnsupportedDialectException Deprecated.Description copied from interface:IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.- Specified by:
getCompletionNode
in interfaceIASTServiceProvider
- Parameters:
fileToParse
- the file in questionproject
- the project containing the scanner infooffset
- the offset at which you require completion atfileCreator
- @see CDOM#getCodeReaderFactory(int)- Returns:
- syntactical parse tree
- Throws:
IASTServiceProvider.UnsupportedDialectException
-
setWorkingCopyProvider
Deprecated.This method has no effect. -
getTranslationUnit
public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IStorage fileToParse, org.eclipse.core.resources.IProject project, ICodeReaderFactory fileCreator) throws IASTServiceProvider.UnsupportedDialectException Deprecated.Description copied from interface:IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.- Specified by:
getTranslationUnit
in interfaceIASTServiceProvider
- Parameters:
fileToParse
- the file in questionproject
- project handle to help us figure out build settingsfileCreator
- @see CDOM#getCodeReaderFactory(int)- Returns:
- syntactical parse tree
- Throws:
IASTServiceProvider.UnsupportedDialectException
-
getTranslationUnit
public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IStorage fileToParse, org.eclipse.core.resources.IProject project) throws IASTServiceProvider.UnsupportedDialectException Deprecated.Description copied from interface:IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.- Specified by:
getTranslationUnit
in interfaceIASTServiceProvider
- Parameters:
fileToParse
- the file in questionproject
- project handle to help us figure out build settings- Returns:
- syntactical parse tree
- Throws:
IASTServiceProvider.UnsupportedDialectException
-
getTranslationUnit
public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse, boolean parseComments) throws IASTServiceProvider.UnsupportedDialectException Deprecated.Description copied from interface:IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.- Specified by:
getTranslationUnit
in interfaceIASTServiceProvider
- Parameters:
fileToParse
- the file in questionparseComments
- parse commtents flag- Returns:
- syntactical parse tree
- Throws:
IASTServiceProvider.UnsupportedDialectException
-
getTranslationUnit
public IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse, ICodeReaderFactory fileCreator, boolean parseComments) throws IASTServiceProvider.UnsupportedDialectException Deprecated.Description copied from interface:IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.- Specified by:
getTranslationUnit
in interfaceIASTServiceProvider
- Parameters:
fileToParse
- the file in questionfileCreator
- @see CDOM#getCodeReaderFactory(int)parseComments
- parse comments flag- Returns:
- syntactical parse tree
- Throws:
IASTServiceProvider.UnsupportedDialectException
-
ILanguage
instead.