public interface IPlatformSpecificTrace<PlatformResource,Location extends IPlatformSpecificLocation<? extends PlatformResource>> extends ITrace
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<? extends Location> |
getAllAssociatedLocations()
Returns all known associated
locations . |
java.lang.Iterable<? extends Location> |
getAllAssociatedLocations(AbsoluteURI uri)
Returns all known
locations that were produced from the associated resource in the
given absoluteTargetResource . |
java.lang.Iterable<? extends Location> |
getAllAssociatedLocations(ITextRegion localRegion)
Returns all associated
locations that match the given region . |
java.lang.Iterable<? extends Location> |
getAllAssociatedLocations(ITextRegion localRegion,
AbsoluteURI uri)
Returns all individual
locations that match the given localRegion
for the expected absoluteTargetResource . |
java.lang.Iterable<? extends Location> |
getAllAssociatedLocations(ITextRegion localRegion,
PlatformResource associatedStorage)
|
java.lang.Iterable<? extends Location> |
getAllAssociatedLocations(PlatformResource associatedStorage)
Returns all known
locations that were produced from the associated resource
in the given targetResource . |
Location |
getBestAssociatedLocation(ITextRegion localRegion)
Returns the best associated
location that matches the given region . |
Location |
getBestAssociatedLocation(ITextRegion localRegion,
AbsoluteURI uri)
|
Location |
getBestAssociatedLocation(ITextRegion localRegion,
PlatformResource associatedStorage)
|
PlatformResource |
getLocalStorage()
Returns the storage that is associated with this trace.
|
getLocalLanguage, getLocalProjectConfig, getLocalURI, getSrcRelativeLocalURI, hasTraceData
PlatformResource getLocalStorage()
null
.Location getBestAssociatedLocation(ITextRegion localRegion, PlatformResource associatedStorage)
location
that matches the given
sourceRegion
in the targetResource
.
If the region does not match a single location in the target, the following strategy applies:
targetResource
is returned.
sourceRegion
does not yield
a location in targetResource
, returns null
.localRegion
- the region in the current resource. May not be null
.associatedStorage
- the expected target resource. May not be null
.null
if none.java.lang.Iterable<? extends Location> getAllAssociatedLocations(ITextRegion localRegion, PlatformResource associatedStorage)
localRegion
- the region in the current resource. May not be null
.associatedStorage
- the expected target resource. May not be null
.null
.java.lang.Iterable<? extends Location> getAllAssociatedLocations(PlatformResource associatedStorage)
locations
that were produced from the associated resource
in the given targetResource
.associatedStorage
- the expected target resource. May not be null
.null
.Location getBestAssociatedLocation(ITextRegion localRegion)
ITrace
location
that matches the given region
.
If the region does not match a single location, the following strategy applies:
null
is returned.
null
.getBestAssociatedLocation
in interface ITrace
localRegion
- the region in the current resource. May not be null
.null
if none.java.lang.Iterable<? extends Location> getAllAssociatedLocations(ITextRegion localRegion)
ITrace
locations
that match the given region
.getAllAssociatedLocations
in interface ITrace
localRegion
- the region in the current resource. May not be null
.null
.java.lang.Iterable<? extends Location> getAllAssociatedLocations()
ITrace
locations
.getAllAssociatedLocations
in interface ITrace
null
.Location getBestAssociatedLocation(ITextRegion localRegion, AbsoluteURI uri)
ITrace
location
that matches the given
localRegion
in the absoluteTargetResource
.
If the region does not match a single location in the target, the following strategy applies:
targetResource
is returned.
localRegion
does not yield
a location in absoluteTargetResource
, returns null
.getBestAssociatedLocation
in interface ITrace
localRegion
- the region in the current resource. May not be null
.uri
- the expected target resource. May not be null
.null
if none.java.lang.Iterable<? extends Location> getAllAssociatedLocations(ITextRegion localRegion, AbsoluteURI uri)
ITrace
locations
that match the given localRegion
for the expected absoluteTargetResource
.getAllAssociatedLocations
in interface ITrace
localRegion
- the region in the current resource. May not be null
.uri
- the expected target resource. May not be null
.null
.java.lang.Iterable<? extends Location> getAllAssociatedLocations(AbsoluteURI uri)
ITrace
locations
that were produced from the associated resource in the
given absoluteTargetResource
.getAllAssociatedLocations
in interface ITrace
uri
- the expected target resource. May not be null
.null
.