Class NoTraces<PlatformResource,Trace extends IPlatformSpecificTrace<PlatformResource,?>>
- java.lang.Object
-
- org.eclipse.xtext.generator.trace.internal.NoTraces<PlatformResource,Trace>
-
- All Implemented Interfaces:
IPlatformSpecificTraceProvider<PlatformResource,Trace>
,ITraceForURIProvider
public class NoTraces<PlatformResource,Trace extends IPlatformSpecificTrace<PlatformResource,?>> extends java.lang.Object implements IPlatformSpecificTraceProvider<PlatformResource,Trace>
Abstract null implementation for platform specific enhancements to the trace API.
-
-
Constructor Summary
Constructors Constructor Description NoTraces()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Trace
getTraceToSource(AbsoluteURI absoluteDerivedResource, IProjectConfig project)
Returns the trace information to the sources that were used as input for the given derived resource.Trace
getTraceToSource(SourceRelativeURI srcRelativeDerivedResource, IProjectConfig project)
Returns the trace information to the sources that were used as input for the given derived resource.Trace
getTraceToSource(PlatformResource derivedResource)
Returns the trace information to the sources that were used as input for the given derived resource.Trace
getTraceToTarget(AbsoluteURI absoluteSourceResource, IProjectConfig project)
Returns the trace information to the targets that were generated from the given source.Trace
getTraceToTarget(SourceRelativeURI srcRelativeSourceResource, IProjectConfig project)
Returns the trace information to the targets that were generated from the given source.Trace
getTraceToTarget(PlatformResource sourceResource)
Returns the trace information to the targets that were generated from the given source.
-
-
-
Method Detail
-
getTraceToSource
public Trace getTraceToSource(PlatformResource derivedResource)
Description copied from interface:IPlatformSpecificTraceProvider
Returns the trace information to the sources that were used as input for the given derived resource. May returnnull
if no such data is available for the given storage.- Specified by:
getTraceToSource
in interfaceIPlatformSpecificTraceProvider<PlatformResource,Trace extends IPlatformSpecificTrace<PlatformResource,?>>
- Parameters:
derivedResource
- the resource whose source trace is requested. May not benull
.- Returns:
- the trace to the source or
null
.
-
getTraceToTarget
public Trace getTraceToTarget(PlatformResource sourceResource)
Description copied from interface:IPlatformSpecificTraceProvider
Returns the trace information to the targets that were generated from the given source. May returnnull
if no such data is available for the given storage.- Specified by:
getTraceToTarget
in interfaceIPlatformSpecificTraceProvider<PlatformResource,Trace extends IPlatformSpecificTrace<PlatformResource,?>>
- Parameters:
sourceResource
- the resource whose target trace is requested. May not benull
.- Returns:
- the trace to the generation targets or
null
.
-
getTraceToSource
public Trace getTraceToSource(AbsoluteURI absoluteDerivedResource, IProjectConfig project)
Description copied from interface:ITraceForURIProvider
Returns the trace information to the sources that were used as input for the given derived resource. May returnnull
if no such data is available for the given storage.- Specified by:
getTraceToSource
in interfaceIPlatformSpecificTraceProvider<PlatformResource,Trace extends IPlatformSpecificTrace<PlatformResource,?>>
- Specified by:
getTraceToSource
in interfaceITraceForURIProvider
- Parameters:
absoluteDerivedResource
- the resource whose source trace is requested. May not benull
.project
- the project that contains the derived resource. May not benull
.- Returns:
- the trace to the source or
null
.
-
getTraceToSource
public Trace getTraceToSource(SourceRelativeURI srcRelativeDerivedResource, IProjectConfig project)
Description copied from interface:ITraceForURIProvider
Returns the trace information to the sources that were used as input for the given derived resource. May returnnull
if no such data is available for the given storage.- Specified by:
getTraceToSource
in interfaceIPlatformSpecificTraceProvider<PlatformResource,Trace extends IPlatformSpecificTrace<PlatformResource,?>>
- Specified by:
getTraceToSource
in interfaceITraceForURIProvider
- Parameters:
srcRelativeDerivedResource
- the resource whose source trace is requested. May not benull
.project
- the project that contains the derived resource. May not benull
.- Returns:
- the trace to the source or
null
.
-
getTraceToTarget
public Trace getTraceToTarget(AbsoluteURI absoluteSourceResource, IProjectConfig project)
Description copied from interface:ITraceForURIProvider
Returns the trace information to the targets that were generated from the given source. May returnnull
if no such data is available for the given storage.- Specified by:
getTraceToTarget
in interfaceIPlatformSpecificTraceProvider<PlatformResource,Trace extends IPlatformSpecificTrace<PlatformResource,?>>
- Specified by:
getTraceToTarget
in interfaceITraceForURIProvider
- Parameters:
absoluteSourceResource
- the resource whose target trace is requested. May not benull
.project
- the project that contains the derived resource. May not benull
.- Returns:
- the trace to the generation targets or
null
.
-
getTraceToTarget
public Trace getTraceToTarget(SourceRelativeURI srcRelativeSourceResource, IProjectConfig project)
Description copied from interface:ITraceForURIProvider
Returns the trace information to the targets that were generated from the given source. May returnnull
if no such data is available for the given storage.- Specified by:
getTraceToTarget
in interfaceIPlatformSpecificTraceProvider<PlatformResource,Trace extends IPlatformSpecificTrace<PlatformResource,?>>
- Specified by:
getTraceToTarget
in interfaceITraceForURIProvider
- Parameters:
srcRelativeSourceResource
- the resource whose target trace is requested. May not benull
.project
- the project that contains the resource. May not benull
.- Returns:
- the trace to the generation targets or
null
.
-
-