public abstract class AbstractLocationInResource extends java.lang.Object implements ILocationInResource
Modifier | Constructor and Description |
---|---|
protected |
AbstractLocationInResource(AbstractTrace trace) |
Modifier and Type | Method and Description |
---|---|
AbsoluteURI |
getAbsoluteResourceURI() |
java.io.InputStream |
getContents()
Returns the contents of the resource.
|
protected abstract int |
getEndLineNumber() |
LanguageInfo |
getLanguage() |
protected abstract int |
getLength() |
protected abstract int |
getLineNumber() |
protected abstract int |
getOffset() |
IProjectConfig |
getProjectConfig() |
abstract SourceRelativeURI |
getSrcRelativeResourceURI()
Returns the URI of this resource relative to the classpath if applicable.
|
ITextRegionWithLineInformation |
getTextRegion() |
protected AbstractTrace |
getTrace() |
java.lang.String |
toString() |
protected AbstractLocationInResource(AbstractTrace trace)
public abstract SourceRelativeURI getSrcRelativeResourceURI()
ILocationInResource
getSrcRelativeResourceURI
in interface ILocationInResource
protected abstract int getOffset()
protected abstract int getLength()
protected abstract int getLineNumber()
protected abstract int getEndLineNumber()
public ITextRegionWithLineInformation getTextRegion()
getTextRegion
in interface ILocationInResource
null
.public AbsoluteURI getAbsoluteResourceURI()
getAbsoluteResourceURI
in interface ILocationInResource
null
if the
resource is not an EMF resource.public java.io.InputStream getContents() throws java.io.IOException
ILocationInResource
null
.getContents
in interface ILocationInResource
java.io.IOException
public IProjectConfig getProjectConfig()
getProjectConfig
in interface ILocationInResource
null
.public LanguageInfo getLanguage()
getLanguage
in interface ILocationInResource
null
.protected AbstractTrace getTrace()
public java.lang.String toString()
toString
in class java.lang.Object