org.eclipse.ocl.examples.impactanalyzer.util
Class IterableAsOperationCallExpKeyedSet
java.lang.Object
org.eclipse.ocl.examples.impactanalyzer.util.IterableAsOperationCallExpKeyedSet
- All Implemented Interfaces:
- java.lang.Iterable<AnnotatedEObject>, OperationCallExpKeyedSet
public class IterableAsOperationCallExpKeyedSet
- extends java.lang.Object
- implements OperationCallExpKeyedSet
Encapsulates an Iterable
of AnnotatedEObject
s as if it could be queried for the specific
operation call expression through which a subset of it was traced. However, it returns the entire iterable's
contents from getCombinedResultsFor(OperationCallExp)
, and entrySet()
behaves as if
the entire iterable were associated with the null
key.
- Author:
- Axel Uhl (D043530)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IterableAsOperationCallExpKeyedSet
public IterableAsOperationCallExpKeyedSet(java.lang.Iterable<AnnotatedEObject> iterable)
iterator
public java.util.Iterator<AnnotatedEObject> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<AnnotatedEObject>
getCombinedResultsFor
public java.lang.Iterable<AnnotatedEObject> getCombinedResultsFor(OperationCallExp oce)
- Specified by:
getCombinedResultsFor
in interface OperationCallExpKeyedSet
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface OperationCallExpKeyedSet
entrySet
public java.lang.Iterable<java.util.Map.Entry<OperationCallExp,java.lang.Iterable<AnnotatedEObject>>> entrySet()
- Specified by:
entrySet
in interface OperationCallExpKeyedSet