Package org.eclipse.epsilon.ecl.trace
Class MatchTrace
java.lang.Object
org.eclipse.epsilon.ecl.trace.MatchTrace
- All Implemented Interfaces:
Iterable<Match>,Collection<Match>
- Since:
- 1.6 Can be accessed through Collection API rather than getMatches for convenience
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final AtomicLongprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends Match> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanReturns the first match for the objectReturns the first match with a certainleftandrightobject.Returns the first match which has a certain object on its left side and relates to a certain rule.Returns all matches, both successful and pairs that have been compared but do not matchgetMatches(Object object) Returns all the matches for a given objectReturns a trace with only the successful matches.booleanhasBeenMatched(Object object) inthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()stream()Object[]toArray()<T> T[]toArray(T[] a) toString()toString(IEolContext context) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
removeIf, spliterator, toArray
-
Field Details
-
_matchGraph
-
creationCounter
-
matchOrder
-
concurrent
protected final boolean concurrent -
toStringCached
-
-
Constructor Details
-
MatchTrace
public MatchTrace() -
MatchTrace
public MatchTrace(boolean concurrent) -
MatchTrace
-
-
Method Details
-
getReduced
Returns a trace with only the successful matches. -
add
-
getMatch
Returns the first match with a certainleftandrightobject. -
getMatches
Returns all the matches for a given object- Parameters:
object-- Returns:
-
getMatch
Returns the first match for the object- Parameters:
object-- Returns:
-
getMatch
Returns the first match which has a certain object on its left side and relates to a certain rule. -
hasBeenMatched
-
toString
-
getMatches
Returns all matches, both successful and pairs that have been compared but do not match- Returns:
-
stream
- Specified by:
streamin interfaceCollection<Match>- Returns:
- Since:
- 1.6
-
toString
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<Match>- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceCollection<Match>- Overrides:
equalsin classObject
-
add
- Specified by:
addin interfaceCollection<Match>- Since:
- 1.6
-
remove
- Specified by:
removein interfaceCollection<Match>- Since:
- 1.6
-
size
public int size()- Specified by:
sizein interfaceCollection<Match>- Since:
- 1.6
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Match>- Since:
- 1.6
-
contains
- Specified by:
containsin interfaceCollection<Match>- Since:
- 1.6
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<Match>- Since:
- 1.6
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<Match>- Since:
- 1.6
-
containsAll
- Specified by:
containsAllin interfaceCollection<Match>- Since:
- 1.6
-
addAll
- Specified by:
addAllin interfaceCollection<Match>- Since:
- 1.6
-
removeAll
- Specified by:
removeAllin interfaceCollection<Match>- Since:
- 1.6
-
retainAll
- Specified by:
retainAllin interfaceCollection<Match>- Since:
- 1.6
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Match>- Since:
- 1.6
-
parallelStream
- Specified by:
parallelStreamin interfaceCollection<Match>- Since:
- 1.6
-