public interface UnitCache
CompilationUnit
s. Alternate implementations may cache only in
memory or both cache in memory and persist to disk.Modifier and Type | Method and Description |
---|---|
void |
add(CompilationUnit newUnit)
Adds a
CompilationUnit to the cache. |
void |
cleanup(TreeLogger logger)
Each run of the compiler should call
cleanup(TreeLogger) when
finished adding units to the cache so that cache files from previous runs
can be purged from a persistent cache. |
void |
clear()
Wipe the contents of the cache.
|
CompilationUnit |
find(com.google.gwt.dev.javac.ContentId contentId)
Lookup a
CompilationUnit by ContentId . |
CompilationUnit |
find(String resourcePath)
Lookup a
CompilationUnit by resource path. |
void |
remove(CompilationUnit unit)
Remove a
CompilationUnit from the cache. |
void add(CompilationUnit newUnit)
CompilationUnit
to the cache.void cleanup(TreeLogger logger)
cleanup(TreeLogger)
when
finished adding units to the cache so that cache files from previous runs
can be purged from a persistent cache.void clear() throws UnableToCompleteException
UnableToCompleteException
CompilationUnit find(com.google.gwt.dev.javac.ContentId contentId)
CompilationUnit
by ContentId
.CompilationUnit find(String resourcePath)
CompilationUnit
by resource path. This should include any path prefix that may
have been stripped to reroot the resource.CompilationUnit.getResourcePath()
void remove(CompilationUnit unit)
CompilationUnit
from the cache.Copyright © 2018. All rights reserved.