public class EclipseSourceLocation extends java.lang.Object implements ISourceLocation
EMPTY, MAX_COLUMN, MAX_LINE, NO_COLUMN, NO_FILE
Constructor and Description |
---|
EclipseSourceLocation(CompilationResult result,
int startPos,
int endPos) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
getColumn() |
CompilationResult |
getCompilationResult() |
java.lang.String |
getContext() |
int |
getEndLine() |
int |
getEndPos() |
int |
getLine() |
int |
getOffset() |
java.io.File |
getSourceFile() |
java.lang.String |
getSourceFileName()
In the cases where getSourceFile().getName() returns a class file (for example when we have a binary aspect) this should
return the name of the source file (for example BinaryAspect.aj)
|
int |
getStartPos() |
int |
hashCode() |
java.lang.String |
toString() |
public EclipseSourceLocation(CompilationResult result, int startPos, int endPos)
public CompilationResult getCompilationResult()
public int getOffset()
getOffset
in interface ISourceLocation
public int getStartPos()
public int getEndPos()
public java.io.File getSourceFile()
getSourceFile
in interface ISourceLocation
public int getLine()
getLine
in interface ISourceLocation
public int getColumn()
getColumn
in interface ISourceLocation
public int getEndLine()
getEndLine
in interface ISourceLocation
public java.lang.String getContext()
getContext
in interface ISourceLocation
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String getSourceFileName()
ISourceLocation
getSourceFileName
in interface ISourceLocation