|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmlspecs.jml4.rac.runtime.JMLOldExpressionCache
public class JMLOldExpressionCache
An abstraction of caches for JML old expressions. This class implements a simple map that is suitable for storing the values of old expressions evaluated in the pre-state. If an old expression appears in a quantifier, we can view it as a mapping from quantified (bound) variables to values. An object of this class is used to store this mapping.
Nested Class Summary | |
---|---|
static class |
JMLOldExpressionCache.Key
A class for representing keys for cache objects. |
Constructor Summary | |
---|---|
JMLOldExpressionCache()
Constructs a new, empty cache object. |
Method Summary | |
---|---|
void |
clear()
Clears this cache. |
boolean |
containsKey(java.lang.Object key)
Does this cache contain a value for the key, key ? |
boolean |
containsKey(java.lang.Object[] key)
Does this cache contain a value for the key, key ? |
java.lang.Object |
get(java.lang.Object key)
Returns the value for the key, key . |
java.lang.Object |
get(java.lang.Object[] key)
Returns the value for the key, key . |
void |
put(java.lang.Object[] key,
java.lang.Object value)
Puts the key/value pair to this cache. |
void |
put(java.lang.Object key,
java.lang.Object value)
Puts the key/value pair to this cache. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMLOldExpressionCache()
Method Detail |
---|
public boolean containsKey(java.lang.Object key)
key
?
requires key != null;
public boolean containsKey(java.lang.Object[] key)
key
?
requires key != null;
public void clear()
public void put(java.lang.Object key, java.lang.Object value)
requires key != null && value != null;
public void put(java.lang.Object[] key, java.lang.Object value)
requires key != null && value != null;
public java.lang.Object get(java.lang.Object key)
key
. If no value
is found for the given key, null
is returned.
requires key != null;
public java.lang.Object get(java.lang.Object[] key)
key
. If no value
is found for the given key, null
is returned.
requires key != null;
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |