Package org.eclipse.epsilon.evl.trace
Class ConstraintTrace
- java.lang.Object
-
- org.eclipse.epsilon.evl.trace.ConstraintTrace
-
- All Implemented Interfaces:
java.lang.Iterable<ConstraintTraceItem>
public class ConstraintTrace extends java.lang.Object implements java.lang.Iterable<ConstraintTraceItem>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<ConstraintTraceItem>iterableprotected java.util.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 voidaddAll(java.util.Collection<? extends ConstraintTrace> others)voidaddAll(ConstraintTrace... others)voidaddChecked(Constraint constraint, java.lang.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()booleanequals(java.lang.Object other)inthashCode()booleanisChecked(Constraint constraint, java.lang.Object instance)booleanisSatisfied(Constraint constraint, java.lang.Object instance)java.util.Iterator<ConstraintTraceItem>iterator()java.util.stream.Stream<ConstraintTraceItem>stream()
-
-
-
Field Detail
-
storageOptimised
protected final java.util.Set<Constraint> storageOptimised
-
iterable
protected final java.util.Set<ConstraintTraceItem> iterable
-
-
Method Detail
-
addAll
public void addAll(java.util.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, java.lang.Object object, boolean result)
-
isChecked
public boolean isChecked(Constraint constraint, java.lang.Object instance)
-
isSatisfied
public boolean isSatisfied(Constraint constraint, java.lang.Object instance)
-
clear
public void clear()
- Since:
- 1.6
-
stream
public java.util.stream.Stream<ConstraintTraceItem> stream()
- Returns:
- Since:
- 1.6
-
iterator
public java.util.Iterator<ConstraintTraceItem> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<ConstraintTraceItem>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- Since:
- 1.6
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object- Since:
- 1.6
-
-