org.eclipse.xtext.builder.trace
Class FileBasedTraceInformation

java.lang.Object
  extended by org.eclipse.xtext.builder.trace.FileBasedTraceInformation
All Implemented Interfaces:
ITraceInformation

@NonNullByDefault
public class FileBasedTraceInformation
extends java.lang.Object
implements ITraceInformation

Author:
Sebastian Zarnekow - Initial contribution and API
This class is not intended to be subclassed by clients.
This class is not intended to be subclassed by clients.
This class is not intended to be instantiated by clients.
This class is not intended to be instantiated by clients.

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.generator.trace.ITraceInformation
ITraceInformation.Null
 
Field Summary
static java.lang.String TRACE_FILE_EXTENSION
           
 
Constructor Summary
FileBasedTraceInformation()
           
 
Method Summary
protected  org.eclipse.core.resources.IStorage getGeneratedFileForTraceFile(org.eclipse.core.resources.IStorage traceFile)
           
 org.eclipse.core.resources.IStorage getTraceFile(org.eclipse.core.resources.IStorage storage)
           
 ITrace getTraceToSource(org.eclipse.core.resources.IStorage derivedResource)
          Returns the trace information to the sources that were used as input for the given derived resource.
 ITrace getTraceToTarget(org.eclipse.core.resources.IStorage sourceResource)
          Returns the trace information to the targets that were generated from the given source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACE_FILE_EXTENSION

public static final java.lang.String TRACE_FILE_EXTENSION
See Also:
Constant Field Values
Constructor Detail

FileBasedTraceInformation

public FileBasedTraceInformation()
Method Detail

getTraceToSource

@Nullable
public ITrace getTraceToSource(org.eclipse.core.resources.IStorage derivedResource)
Description copied from interface: ITraceInformation
Returns the trace information to the sources that were used as input for the given derived resource. May return null if no such data is available for the given storage.

Specified by:
getTraceToSource in interface ITraceInformation
Parameters:
derivedResource - the resource whose source trace is requested. May not be null.
Returns:
the trace to the source or null.

getTraceToTarget

@Nullable
public ITrace getTraceToTarget(org.eclipse.core.resources.IStorage sourceResource)
Description copied from interface: ITraceInformation
Returns the trace information to the targets that were generated from the given source. May return null if no such data is available for the given storage.

Specified by:
getTraceToTarget in interface ITraceInformation
Parameters:
sourceResource - the resource whose target trace is requested. May not be null.
Returns:
the trace to the generation targets or null.

getTraceFile

@Nullable
public org.eclipse.core.resources.IStorage getTraceFile(org.eclipse.core.resources.IStorage storage)
Since:
2.3

getGeneratedFileForTraceFile

@Nullable
protected org.eclipse.core.resources.IStorage getGeneratedFileForTraceFile(org.eclipse.core.resources.IStorage traceFile)