org.eclipse.xtext.generator.trace
Class LocationData

java.lang.Object
  extended by org.eclipse.xtext.util.TextRegion
      extended by org.eclipse.xtext.util.TextRegionWithLineInformation
          extended by org.eclipse.xtext.generator.trace.LocationData
All Implemented Interfaces:
ILocationData, ITextRegion, ITextRegionWithLineInformation

public class LocationData
extends TextRegionWithLineInformation
implements ILocationData

Author:
Sebastian Zarnekow - Initial contribution and API

Field Summary
 
Fields inherited from interface org.eclipse.xtext.util.ITextRegionWithLineInformation
EMPTY_REGION
 
Constructor Summary
LocationData(int offset, int length, int lineNumber, int endLineNumber, org.eclipse.emf.common.util.URI path, java.lang.String projectName)
           
LocationData(ITextRegionWithLineInformation region, org.eclipse.emf.common.util.URI path, java.lang.String projectName)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 org.eclipse.emf.common.util.URI getPath()
           
 java.lang.String getProjectName()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.xtext.util.TextRegionWithLineInformation
getEndLineNumber, getLineNumber, merge, merge
 
Methods inherited from class org.eclipse.xtext.util.TextRegion
contains, contains, getLength, getOffset
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.xtext.util.ITextRegionWithLineInformation
getEndLineNumber, getLineNumber, merge
 
Methods inherited from interface org.eclipse.xtext.util.ITextRegion
contains, contains, getLength, getOffset, merge
 

Constructor Detail

LocationData

public LocationData(int offset,
                    int length,
                    int lineNumber,
                    int endLineNumber,
                    @Nullable
                    org.eclipse.emf.common.util.URI path,
                    @Nullable
                    java.lang.String projectName)

LocationData

public LocationData(@NonNull
                    ITextRegionWithLineInformation region,
                    @Nullable
                    org.eclipse.emf.common.util.URI path,
                    @Nullable
                    java.lang.String projectName)
Method Detail

getPath

@Nullable
public org.eclipse.emf.common.util.URI getPath()
Specified by:
getPath in interface ILocationData

getProjectName

@Nullable
public java.lang.String getProjectName()
Specified by:
getProjectName in interface ILocationData

hashCode

public int hashCode()
Overrides:
hashCode in class TextRegion

equals

public boolean equals(@Nullable
                      java.lang.Object obj)
Overrides:
equals in class TextRegion

toString

@NonNull
public java.lang.String toString()
Overrides:
toString in class TextRegionWithLineInformation