|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.core.dom.CDOM
public class CDOM
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.IASTServiceProvider |
---|
IASTServiceProvider.UnsupportedDialectException |
Field Summary | |
---|---|
static int |
PARSE_SAVED_RESOURCES
Constant PARSE_SAVED_RESOURCES - Parse saved resources in the workspace |
static int |
PARSE_WORKING_COPY_WHENEVER_POSSIBLE
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
Constant PARSE_WORKING_COPY_WITH_SAVED_INCLUSIONS - Parse working copy for
translation unit, saved resources for all header files. |
Method Summary | |
---|---|
IASTServiceProvider |
getASTService()
|
org.eclipse.cdt.core.dom.ICodeReaderFactory |
getCodeReaderFactory(int key)
This is the factory function that returns an ICodeReaderFactory instance based upon the key provided. |
org.eclipse.cdt.core.dom.ast.IASTCompletionNode |
getCompletionNode(org.eclipse.core.resources.IFile fileToParse,
int offset,
org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator)
Returns a parse tree that represents the content provided as parameters. |
org.eclipse.cdt.core.dom.ast.IASTCompletionNode |
getCompletionNode(org.eclipse.core.resources.IStorage fileToParse,
org.eclipse.core.resources.IProject project,
int offset,
org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator)
Returns a parse tree that represents the content provided as parameters. |
static CDOM |
getInstance()
accessor for singleton instance |
org.eclipse.cdt.core.dom.ast.IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IFile fileToParse)
Returns a parse tree that represents the content provided as parameters. |
org.eclipse.cdt.core.dom.ast.IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IFile fileToParse,
boolean parseComments)
Returns a parse tree that represents the content provided as parameters. |
org.eclipse.cdt.core.dom.ast.IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IFile fileToParse,
org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator)
Returns a parse tree that represents the content provided as parameters. |
org.eclipse.cdt.core.dom.ast.IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IFile fileToParse,
org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator,
boolean parseComments)
Returns a parse tree that represents the content provided as parameters. |
org.eclipse.cdt.core.dom.ast.IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IFile fileToParse,
org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator,
org.eclipse.cdt.core.dom.IParserConfiguration configuration)
Returns a parse tree that represents the content provided as parameters. |
org.eclipse.cdt.core.dom.ast.IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IStorage fileToParse,
org.eclipse.core.resources.IProject project)
Returns a parse tree that represents the content provided as parameters. |
org.eclipse.cdt.core.dom.ast.IASTTranslationUnit |
getTranslationUnit(org.eclipse.core.resources.IStorage fileToParse,
org.eclipse.core.resources.IProject project,
org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator)
Returns a parse tree that represents the content provided as parameters. |
void |
setWorkingCopyProvider(org.eclipse.cdt.core.model.IWorkingCopyProvider workingCopyProvider)
This method allows a UI component to register its IWorkingCopyProvider to the CDOM. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PARSE_SAVED_RESOURCES
PARSE_SAVED_RESOURCES
- Parse saved resources in the workspace
public 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.
Method Detail |
---|
public static CDOM getInstance()
public IASTServiceProvider getASTService()
public org.eclipse.cdt.core.dom.ICodeReaderFactory getCodeReaderFactory(int key)
key
- one of PARSE_SAVED_RESOURCES, PARSE_WORKING_COPY_WITH_SAVED_INCLUSIONS, PARSE_WORKING_COPY_WHENEVER_POSSIBLE
public org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse) throws IASTServiceProvider.UnsupportedDialectException
IASTServiceProvider
getTranslationUnit
in interface IASTServiceProvider
fileToParse
- the file in question
IASTServiceProvider.UnsupportedDialectException
public org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse, org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator) throws IASTServiceProvider.UnsupportedDialectException
IASTServiceProvider
getTranslationUnit
in interface IASTServiceProvider
fileToParse
- the file in questionfileCreator
- @see CDOM#getCodeReaderFactory(int)
IASTServiceProvider.UnsupportedDialectException
public org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse, org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator, org.eclipse.cdt.core.dom.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 service
IASTServiceProvider.UnsupportedDialectException
public org.eclipse.cdt.core.dom.ast.IASTCompletionNode getCompletionNode(org.eclipse.core.resources.IFile fileToParse, int offset, org.eclipse.cdt.core.dom.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 org.eclipse.cdt.core.dom.ast.IASTCompletionNode getCompletionNode(org.eclipse.core.resources.IStorage fileToParse, org.eclipse.core.resources.IProject project, int offset, org.eclipse.cdt.core.dom.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(org.eclipse.cdt.core.model.IWorkingCopyProvider workingCopyProvider)
workingCopyProvider
- - UI components buffer managerpublic org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IStorage fileToParse, org.eclipse.core.resources.IProject project, org.eclipse.cdt.core.dom.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 org.eclipse.cdt.core.dom.ast.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 settings
IASTServiceProvider.UnsupportedDialectException
public org.eclipse.cdt.core.dom.ast.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 flag
IASTServiceProvider.UnsupportedDialectException
public org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse, org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator, boolean parseComments) throws IASTServiceProvider.UnsupportedDialectException
IASTServiceProvider
getTranslationUnit
in interface IASTServiceProvider
fileToParse
- the file in questionfileCreator
- @see CDOM#getCodeReaderFactory(int)parseComments
- parse commtents flag
IASTServiceProvider.UnsupportedDialectException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |