|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.LazyExtentMap<CLS,E>
public abstract class LazyExtentMap<CLS,E>
A self-populating map that lazily creates the extent of a class when asked for it.
Note that this implementation violates the contract of the
Map
API as follows:
Map.entrySet()
method does not return entries
for any keys that have not already been queried via the
Map.get(java.lang.Object)
methodMap.keySet()
and Map.values()
methods also are not complete
See the Environment
class for a description of the
generic type parameters of this class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
LazyExtentMap(EObject context)
Initializes me with the context element of an OCL expression evaluation. |
Method Summary | |
---|---|
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set<java.util.Map.Entry<CLS,java.util.Set<E>>> |
entrySet()
|
boolean |
equals(java.lang.Object obj)
|
java.util.Set<E> |
get(java.lang.Object key)
Lazily computes the extent of the specified class key . |
int |
hashCode()
|
boolean |
isEmpty()
|
protected abstract boolean |
isInstance(CLS cls,
E element)
Implemented by subclasses to determine whether the specified element is an instance of the specified class, according to the metamodel semantics implemented by the environment that created this extent map. |
java.util.Set<CLS> |
keySet()
|
java.util.Set<E> |
put(CLS key,
java.util.Set<E> value)
|
void |
putAll(java.util.Map<? extends CLS,? extends java.util.Set<E>> t)
|
java.util.Set<E> |
remove(java.lang.Object key)
|
int |
size()
|
java.lang.String |
toString()
|
java.util.Collection<java.util.Set<E>> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LazyExtentMap(EObject context)
context
- my context elementMethod Detail |
---|
public java.util.Set<E> get(java.lang.Object key)
key
.
get
in interface java.util.Map<CLS,java.util.Set<E>>
key
- a class in the modelprotected abstract boolean isInstance(CLS cls, E element)
cls
- a class in the modelelement
- a potential run-time (M0) instance of that class
true
if this element is an instance of the given
class; false
otherwisepublic void clear()
clear
in interface java.util.Map<CLS,java.util.Set<E>>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<CLS,java.util.Set<E>>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<CLS,java.util.Set<E>>
public java.util.Set<java.util.Map.Entry<CLS,java.util.Set<E>>> entrySet()
entrySet
in interface java.util.Map<CLS,java.util.Set<E>>
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Map<CLS,java.util.Set<E>>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Map<CLS,java.util.Set<E>>
hashCode
in class java.lang.Object
public boolean isEmpty()
isEmpty
in interface java.util.Map<CLS,java.util.Set<E>>
public java.util.Set<CLS> keySet()
keySet
in interface java.util.Map<CLS,java.util.Set<E>>
public java.util.Set<E> put(CLS key, java.util.Set<E> value)
put
in interface java.util.Map<CLS,java.util.Set<E>>
public void putAll(java.util.Map<? extends CLS,? extends java.util.Set<E>> t)
putAll
in interface java.util.Map<CLS,java.util.Set<E>>
public java.util.Set<E> remove(java.lang.Object key)
remove
in interface java.util.Map<CLS,java.util.Set<E>>
public int size()
size
in interface java.util.Map<CLS,java.util.Set<E>>
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Collection<java.util.Set<E>> values()
values
in interface java.util.Map<CLS,java.util.Set<E>>
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |