org.eclipse.cdt.internal.core.dom
Class InternalASTServiceProvider

java.lang.Object
  extended by org.eclipse.cdt.internal.core.dom.InternalASTServiceProvider
All Implemented Interfaces:
IASTServiceProvider

public class InternalASTServiceProvider
extends java.lang.Object
implements IASTServiceProvider

Author:
jcamelon

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.IASTServiceProvider
IASTServiceProvider.UnsupportedDialectException
 
Constructor Summary
InternalASTServiceProvider()
           
 
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.IASTCompletionNode getCompletionNode(java.lang.String filename, org.eclipse.core.resources.IResource infoProvider, int offset, org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator)
           
 java.lang.String getName()
           
 java.lang.String[] getSupportedDialects()
           
 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.
 org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(java.lang.String filename, org.eclipse.core.resources.IResource infoProvider, org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator, org.eclipse.cdt.core.dom.IParserConfiguration configuration, boolean parseComment)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalASTServiceProvider

public InternalASTServiceProvider()
Method Detail

getName

public java.lang.String getName()

getTranslationUnit

public org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse)
                                                                    throws IASTServiceProvider.UnsupportedDialectException
Description copied from interface: IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.

Specified by:
getTranslationUnit in interface IASTServiceProvider
Parameters:
fileToParse - the file in question
Returns:
syntactical parse tree
Throws:
IASTServiceProvider.UnsupportedDialectException

getTranslationUnit

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
Description copied from interface: IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.

Specified by:
getTranslationUnit in interface IASTServiceProvider
Parameters:
fileToParse - the file in question
fileCreator - @see CDOM#getCodeReaderFactory(int)
Returns:
syntactical parse tree
Throws:
IASTServiceProvider.UnsupportedDialectException

getTranslationUnit

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
Description copied from interface: IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.

Specified by:
getTranslationUnit in interface IASTServiceProvider
Parameters:
fileToParse - the file in question
fileCreator - @see CDOM#getCodeReaderFactory(int)
configuration - parser configuration provided rather than discovered by service
Returns:
syntactical parse tree
Throws:
IASTServiceProvider.UnsupportedDialectException

getTranslationUnit

public org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(java.lang.String filename,
                                                                           org.eclipse.core.resources.IResource infoProvider,
                                                                           org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator,
                                                                           org.eclipse.cdt.core.dom.IParserConfiguration configuration,
                                                                           boolean parseComment)
                                                                    throws IASTServiceProvider.UnsupportedDialectException
Throws:
IASTServiceProvider.UnsupportedDialectException

getCompletionNode

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
Description copied from interface: IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.

Specified by:
getCompletionNode in interface IASTServiceProvider
Parameters:
fileToParse - the file in question
project - the project containing the scanner info
offset - the offset at which you require completion at
fileCreator - @see CDOM#getCodeReaderFactory(int)
Returns:
syntactical parse tree
Throws:
IASTServiceProvider.UnsupportedDialectException

getCompletionNode

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
Description copied from interface: IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.

Specified by:
getCompletionNode in interface IASTServiceProvider
Parameters:
fileToParse - the file in question
offset - the offset at which you require completion at
fileCreator - @see CDOM#getCodeReaderFactory(int)
Returns:
syntactical parse tree
Throws:
IASTServiceProvider.UnsupportedDialectException

getCompletionNode

public org.eclipse.cdt.core.dom.ast.IASTCompletionNode getCompletionNode(java.lang.String filename,
                                                                         org.eclipse.core.resources.IResource infoProvider,
                                                                         int offset,
                                                                         org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator)
                                                                  throws IASTServiceProvider.UnsupportedDialectException
Throws:
IASTServiceProvider.UnsupportedDialectException

getSupportedDialects

public java.lang.String[] getSupportedDialects()

getTranslationUnit

public 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
Description copied from interface: IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.

Specified by:
getTranslationUnit in interface IASTServiceProvider
Parameters:
fileToParse - the file in question
project - project handle to help us figure out build settings
fileCreator - @see CDOM#getCodeReaderFactory(int)
Returns:
syntactical parse tree
Throws:
IASTServiceProvider.UnsupportedDialectException

getTranslationUnit

public org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IStorage fileToParse,
                                                                           org.eclipse.core.resources.IProject project)
                                                                    throws IASTServiceProvider.UnsupportedDialectException
Description copied from interface: IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.

Specified by:
getTranslationUnit in interface IASTServiceProvider
Parameters:
fileToParse - the file in question
project - project handle to help us figure out build settings
Returns:
syntactical parse tree
Throws:
IASTServiceProvider.UnsupportedDialectException

getTranslationUnit

public org.eclipse.cdt.core.dom.ast.IASTTranslationUnit getTranslationUnit(org.eclipse.core.resources.IFile fileToParse,
                                                                           boolean parseComments)
                                                                    throws IASTServiceProvider.UnsupportedDialectException
Description copied from interface: IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.

Specified by:
getTranslationUnit in interface IASTServiceProvider
Parameters:
fileToParse - the file in question
parseComments - parse commtents flag
Returns:
syntactical parse tree
Throws:
IASTServiceProvider.UnsupportedDialectException

getTranslationUnit

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
Description copied from interface: IASTServiceProvider
Returns a parse tree that represents the content provided as parameters.

Specified by:
getTranslationUnit in interface IASTServiceProvider
Parameters:
fileToParse - the file in question
fileCreator - @see CDOM#getCodeReaderFactory(int)
parseComments - parse commtents flag
Returns:
syntactical parse tree
Throws:
IASTServiceProvider.UnsupportedDialectException