public final class ComparisonIndex extends Object
Modifier and Type | Method and Description |
---|---|
Collection<ReferenceChange> |
getReferenceChangesByValue(EObject value)
The indexed
ReferenceChange s whose value is in the given Match. |
Collection<ReferenceChange> |
getReferenceChangesByValueMatch(Match valueMatch)
The indexed
ReferenceChange s whose value is in the given Match. |
Collection<ReferenceChange> |
getReferenceChangesByValueURI(URI valueURI)
The indexed
ReferenceChange s whose value has the given URI (only unresolved proxies are indexed
that way). |
static ComparisonIndex |
index(Comparison comparison,
Monitor monitor)
Utility method to index a comparison.
|
public static ComparisonIndex index(Comparison comparison, Monitor monitor)
comparison
- The comparison to index, O(nb. diff)monitor
- the monitorpublic Collection<ReferenceChange> getReferenceChangesByValue(EObject value)
ReferenceChange
s whose value is in the given Match.value
- The target EObject
ReferenceChange
s whose value is in the same match as the
given EObject, or has the same URI.public Collection<ReferenceChange> getReferenceChangesByValueMatch(Match valueMatch)
ReferenceChange
s whose value is in the given Match.valueMatch
- The target Match
ReferenceChange
s whose value in the given match.public Collection<ReferenceChange> getReferenceChangesByValueURI(URI valueURI)
ReferenceChange
s whose value has the given URI (only unresolved proxies are indexed
that way).valueURI
- The URI to look forReferenceChange
s whose value is unresolved and has the given
URI
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.