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 ISourceLocationpublic int getStartPos()
public int getEndPos()
public java.io.File getSourceFile()
getSourceFile in interface ISourceLocationpublic int getLine()
getLine in interface ISourceLocationpublic int getColumn()
getColumn in interface ISourceLocationpublic int getEndLine()
getEndLine in interface ISourceLocationpublic java.lang.String getContext()
getContext in interface ISourceLocationpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String getSourceFileName()
ISourceLocationgetSourceFileName in interface ISourceLocation