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
Modifier and TypeFieldDescriptionprotected final boolean
protected final AtomicLong
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends Match> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
Returns the first match for the objectReturns the first match with a certainleft
andright
object.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.boolean
hasBeenMatched
(Object object) int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
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, wait
Methods 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 certainleft
andright
object. -
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:
stream
in interfaceCollection<Match>
- Returns:
- Since:
- 1.6
-
toString
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<Match>
- Overrides:
hashCode
in classObject
-
equals
- Specified by:
equals
in interfaceCollection<Match>
- Overrides:
equals
in classObject
-
add
- Specified by:
add
in interfaceCollection<Match>
- Since:
- 1.6
-
remove
- Specified by:
remove
in interfaceCollection<Match>
- Since:
- 1.6
-
size
public int size()- Specified by:
size
in interfaceCollection<Match>
- Since:
- 1.6
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<Match>
- Since:
- 1.6
-
contains
- Specified by:
contains
in interfaceCollection<Match>
- Since:
- 1.6
-
iterator
-
toArray
- Specified by:
toArray
in interfaceCollection<Match>
- Since:
- 1.6
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArray
in interfaceCollection<Match>
- Since:
- 1.6
-
containsAll
- Specified by:
containsAll
in interfaceCollection<Match>
- Since:
- 1.6
-
addAll
- Specified by:
addAll
in interfaceCollection<Match>
- Since:
- 1.6
-
removeAll
- Specified by:
removeAll
in interfaceCollection<Match>
- Since:
- 1.6
-
retainAll
- Specified by:
retainAll
in interfaceCollection<Match>
- Since:
- 1.6
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<Match>
- Since:
- 1.6
-
parallelStream
- Specified by:
parallelStream
in interfaceCollection<Match>
- Since:
- 1.6
-