|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IASTServiceProvider
This is the mechanism that represents a parser service in the CDT. IASTTranslationUnits and ASTCompletionNodes are artifacts that this service returns.
Nested Class Summary | |
---|---|
static class |
IASTServiceProvider.UnsupportedDialectException
This exception is thrown when there is not a service provider that can handle the request due to dialect mis-match. |
Method Summary | |
---|---|
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. |
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. |
Method Detail |
---|
org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse) throws IASTServiceProvider.UnsupportedDialectException
fileToParse
- the file in question
IASTServiceProvider.UnsupportedDialectException
org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse, boolean parseComments) throws IASTServiceProvider.UnsupportedDialectException
fileToParse
- the file in questionparseComments
- parse commtents flag
IASTServiceProvider.UnsupportedDialectException
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
fileToParse
- the file in questionproject
- project handle to help us figure out build settingsfileCreator
- @see CDOM#getCodeReaderFactory(int)
IASTServiceProvider.UnsupportedDialectException
org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IStorage fileToParse, org.eclipse.core.resources.IProject project) throws IASTServiceProvider.UnsupportedDialectException
fileToParse
- the file in questionproject
- project handle to help us figure out build settings
IASTServiceProvider.UnsupportedDialectException
org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse, org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator) throws IASTServiceProvider.UnsupportedDialectException
fileToParse
- the file in questionfileCreator
- @see CDOM#getCodeReaderFactory(int)
IASTServiceProvider.UnsupportedDialectException
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
fileToParse
- the file in questionfileCreator
- @see CDOM#getCodeReaderFactory(int)parseComments
- parse commtents flag
IASTServiceProvider.UnsupportedDialectException
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
fileToParse
- the file in questionfileCreator
- @see CDOM#getCodeReaderFactory(int)configuration
- parser configuration provided rather than discovered by service
IASTServiceProvider.UnsupportedDialectException
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
fileToParse
- the file in questionoffset
- the offset at which you require completion atfileCreator
- @see CDOM#getCodeReaderFactory(int)
IASTServiceProvider.UnsupportedDialectException
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
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |