|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sofya.graphs.GraphCache.CachedGraph
public static class GraphCache.CachedGraph
Container class used to encapsulate a cached graph and its associated status for passing to external users of the cache.
Method Summary | |
---|---|
Graph |
getGraph()
Gets the graph retrieved from the cache. |
boolean |
isComplete()
Reports whether the graph has been marked as complete. |
boolean |
isFresh()
Reports whether the graph has been marked as fresh. |
void |
setComplete(boolean isComplete)
Sets whether a graph is complete. |
void |
setFresh(boolean isFresh)
Sets whether a graph is fresh. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Graph getGraph()
public boolean isComplete()
Only graphs marked as complete are cached to disk! This is a safety measure to avoid corrupting algorithms which may depend on object identity to function correctly. It may be relaxed in the future.
true
if the graph is considered completepublic void setComplete(boolean isComplete)
Only graphs marked as complete are cached to disk! This is a safety measure to avoid corrupting algorithms which may depend on object identity to function correctly. It may be relaxed in the future.
isComplete
- true
to mark the graph as complete,
false
otherwise.public boolean isFresh()
This flag may be set internally to indicate that a graph was
constructed automatically by the type inference module. This
is used, for example, by the CFGBuilder to return the graph
from the cache the first time it is requested, even if by
a buildCFG
method.
true
If the graph has not been requested
externally since it was constructed.public void setFresh(boolean isFresh)
A graph should be considered fresh only if it has not been requested externally since it was constructed.
isFresh
- true
to mark the graph as fresh,
false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |