Package org.eclipse.epsilon.evl.trace
Class ConstraintTrace
- java.lang.Object
-
- org.eclipse.epsilon.evl.trace.ConstraintTrace
-
- All Implemented Interfaces:
Iterable<ConstraintTraceItem>
public class ConstraintTrace extends Object implements Iterable<ConstraintTraceItem>
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
concurrent
protected Map<Object,Set<ConstraintTraceItem>>
objectItemsMap
protected Set<Constraint>
storageOptimised
-
Constructor Summary
Constructors Constructor Description ConstraintTrace()
ConstraintTrace(boolean concurrent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAll(Collection<? extends ConstraintTrace> others)
void
addAll(ConstraintTrace... others)
void
addChecked(Constraint constraint, Object object, boolean result)
void
addCheckedOptimised(Constraint constraint)
Indicates that this constraint was checked in an optimised manner, so we only have the trace items for the invalid items and anything else is considered checked and valid.void
clear()
boolean
equals(Object other)
Set<ConstraintTraceItem>
getItems()
int
hashCode()
boolean
isChecked(Constraint constraint, Object instance)
boolean
isSatisfied(Constraint constraint, Object instance)
Iterator<ConstraintTraceItem>
iterator()
Stream<ConstraintTraceItem>
stream()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
storageOptimised
protected final Set<Constraint> storageOptimised
-
objectItemsMap
protected final Map<Object,Set<ConstraintTraceItem>> objectItemsMap
-
concurrent
protected boolean concurrent
-
-
Method Detail
-
addAll
public void addAll(Collection<? extends ConstraintTrace> others)
- Parameters:
others
-- Since:
- 1.6
-
addAll
public void addAll(ConstraintTrace... others)
- Parameters:
others
-- Since:
- 1.6
-
addCheckedOptimised
public void addCheckedOptimised(Constraint constraint)
Indicates that this constraint was checked in an optimised manner, so we only have the trace items for the invalid items and anything else is considered checked and valid.
-
addChecked
public void addChecked(Constraint constraint, Object object, boolean result)
-
isChecked
public boolean isChecked(Constraint constraint, Object instance)
-
isSatisfied
public boolean isSatisfied(Constraint constraint, Object instance)
-
clear
public void clear()
- Since:
- 1.6
-
getItems
public Set<ConstraintTraceItem> getItems()
-
stream
public Stream<ConstraintTraceItem> stream()
- Returns:
- Since:
- 1.6
-
iterator
public Iterator<ConstraintTraceItem> iterator()
- Specified by:
iterator
in interfaceIterable<ConstraintTraceItem>
-
-