Package org.eclipse.epsilon.evl.trace
Class ConstraintTrace
java.lang.Object
org.eclipse.epsilon.evl.trace.ConstraintTrace
- All Implemented Interfaces:
Iterable<ConstraintTraceItem>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final Map<Object,Set<ConstraintTraceItem>> protected final Set<Constraint> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(Collection<? extends ConstraintTrace> others) voidaddAll(ConstraintTrace... others) voidaddChecked(Constraint constraint, Object object, boolean result) voidaddCheckedOptimised(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.voidclear()booleangetItems()inthashCode()booleanisChecked(Constraint constraint, Object instance) booleanisSatisfied(Constraint constraint, Object instance) iterator()stream()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
storageOptimised
-
objectItemsMap
-
concurrent
protected boolean concurrent
-
-
Constructor Details
-
ConstraintTrace
public ConstraintTrace() -
ConstraintTrace
public ConstraintTrace(boolean concurrent) - Parameters:
concurrent-- Since:
- 1.6
-
-
Method Details
-
addAll
- Parameters:
others-- Since:
- 1.6
-
addAll
- Parameters:
others-- Since:
- 1.6
-
addCheckedOptimised
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
-
isChecked
-
isSatisfied
-
clear
public void clear()- Since:
- 1.6
-
getItems
-
stream
- Returns:
- Since:
- 1.6
-
iterator
- Specified by:
iteratorin interfaceIterable<ConstraintTraceItem>
-
hashCode
public int hashCode() -
equals
-