public abstract class AbstractLocationInResource extends java.lang.Object implements ILocationInResource
Modifier | Constructor and Description |
---|---|
protected |
AbstractLocationInResource(AbstractTrace trace) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.common.util.URI |
getAbsoluteResourceURI() |
java.io.InputStream |
getContents() |
protected abstract int |
getEndLineNumber() |
org.eclipse.emf.common.util.URI |
getEObjectURI() |
LanguageInfo |
getLanguage() |
protected abstract int |
getLength() |
protected abstract int |
getLineNumber() |
protected abstract int |
getOffset() |
org.eclipse.core.resources.IProject |
getProject() |
abstract org.eclipse.emf.common.util.URI |
getSrcRelativeResourceURI() |
org.eclipse.core.resources.IStorage |
getStorage() |
ITextRegionWithLineInformation |
getTextRegion() |
java.lang.String |
toString() |
protected AbstractLocationInResource(AbstractTrace trace)
public abstract org.eclipse.emf.common.util.URI getSrcRelativeResourceURI()
getSrcRelativeResourceURI
in interface ILocationInResource
protected abstract int getOffset()
protected abstract int getLength()
protected abstract int getLineNumber()
protected abstract int getEndLineNumber()
public org.eclipse.core.resources.IStorage getStorage()
getStorage
in interface ILocationInResource
null
if the trace comes from a JAR's
source attachment zip file.public ITextRegionWithLineInformation getTextRegion()
getTextRegion
in interface ILocationInResource
null
.public org.eclipse.emf.common.util.URI getAbsoluteResourceURI()
getAbsoluteResourceURI
in interface ILocationInResource
null
if the
resource is not an EMF resource.public java.io.InputStream getContents() throws org.eclipse.core.runtime.CoreException
getContents
in interface ILocationInResource
org.eclipse.core.runtime.CoreException
public org.eclipse.core.resources.IProject getProject()
getProject
in interface ILocationInResource
null
.public LanguageInfo getLanguage()
getLanguage
in interface ILocationInResource
null
.public org.eclipse.emf.common.util.URI getEObjectURI()
getEObjectURI
in interface ILocationInResource
object
URI
for this location. May be null
if the resource itself is empty or if this
resource is not an EMF resource.public java.lang.String toString()
toString
in class java.lang.Object