|
Carbide.c++ | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nokia.carbide.cpp.epoc.engine.preprocessor.DefaultTranslationUnitProvider
public class DefaultTranslationUnitProvider
A default implementation of ITranslationUnitProvider which caches translation units. It keeps a maximum number of translation units in memory at a time. It refreshes a TU when the underlying file's timestamp changes.
ITranslationUnitProvider
Method Summary | |
---|---|
static DefaultTranslationUnitProvider |
getInstance()
Get the singleton instanceof the translation unit provider. |
com.nokia.carbide.internal.api.cpp.epoc.engine.dom.IASTTranslationUnit |
getTranslationUnit(java.io.File file,
IModelDocumentProvider modelDocumentProvider)
Locate an existing TU, or load it and parse it. |
void |
setDebugFlag(boolean flag)
Configure the debugging flag. |
void |
setMaxCacheCount(int count)
Set the maximum number of TU's to keep. |
void |
setMinimumHitsToKeep(int minHits)
Set the minimum number of hits setting, which controls the lower limit at which a TU will be kept in the cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DefaultTranslationUnitProvider getInstance()
public com.nokia.carbide.internal.api.cpp.epoc.engine.dom.IASTTranslationUnit getTranslationUnit(java.io.File file, IModelDocumentProvider modelDocumentProvider)
ITranslationUnitProvider
This represents only the given file (no #includes are expanded).
getTranslationUnit
in interface ITranslationUnitProvider
file
- the full path to the filemodelDocumentProvider
- the provider of IDocument instances for the file.
public void setDebugFlag(boolean flag)
flag
- public void setMaxCacheCount(int count)
This attempts to reduces the cache.
count
- number of TUs, must be nonnegativepublic void setMinimumHitsToKeep(int minHits)
This attempts to reduces the cache.
minHits
- minimum hits, must be nonnegative
|
Carbide.c++ | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |