public class SourceContextImpl extends java.lang.Object implements ISourceContext
Modifier and Type | Field and Description |
---|---|
static ISourceContext |
UNKNOWN_SOURCE_CONTEXT |
Constructor and Description |
---|
SourceContextImpl(AbstractReferenceTypeDelegate delegate) |
Modifier and Type | Method and Description |
---|---|
void |
configureFromAttribute(java.lang.String name,
int[] linebreaks) |
int |
getOffset() |
ISourceLocation |
makeSourceLocation(IHasPosition position) |
ISourceLocation |
makeSourceLocation(int line,
int offset) |
void |
setSourceFileName(java.lang.String name) |
void |
tidy() |
public static final ISourceContext UNKNOWN_SOURCE_CONTEXT
public SourceContextImpl(AbstractReferenceTypeDelegate delegate)
public void configureFromAttribute(java.lang.String name, int[] linebreaks)
public void setSourceFileName(java.lang.String name)
public void tidy()
tidy
in interface ISourceContext
public int getOffset()
getOffset
in interface ISourceContext
public ISourceLocation makeSourceLocation(IHasPosition position)
makeSourceLocation
in interface ISourceContext
public ISourceLocation makeSourceLocation(int line, int offset)
makeSourceLocation
in interface ISourceContext