public abstract class AbstractLocationInResource extends Object implements ILocationInResource
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLocationInResource(AbstractTrace trace) |
| Modifier and Type | Method and Description |
|---|---|
AbsoluteURI |
getAbsoluteResourceURI() |
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() |
String |
toString() |
protected AbstractLocationInResource(AbstractTrace trace)
public abstract SourceRelativeURI getSrcRelativeResourceURI()
ILocationInResourcegetSrcRelativeResourceURI in interface ILocationInResourceprotected abstract int getOffset()
protected abstract int getLength()
protected abstract int getLineNumber()
protected abstract int getEndLineNumber()
public ITextRegionWithLineInformation getTextRegion()
getTextRegion in interface ILocationInResourcenull.public AbsoluteURI getAbsoluteResourceURI()
getAbsoluteResourceURI in interface ILocationInResourcenull if the
resource is not an EMF resource.public InputStream getContents() throws IOException
ILocationInResourcenull.getContents in interface ILocationInResourceIOExceptionpublic IProjectConfig getProjectConfig()
getProjectConfig in interface ILocationInResourcenull.public LanguageInfo getLanguage()
getLanguage in interface ILocationInResourcenull.protected AbstractTrace getTrace()
Copyright © 2015. All Rights Reserved.