|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISourceLocation
Represent source location as a starting line/column and ending line in a source file. Implementations should be immutable. XXX why?
SourceLocation
,
org.aspectj.compiler.base.parser.SourceInfo
,
org.aspectj.tools.ide.SourceLine
,
org.aspectj.testing.harness.ErrorLine
Field Summary | |
---|---|
static ISourceLocation |
EMPTY
non-null but empty constant source location |
static int |
MAX_COLUMN
|
static int |
MAX_LINE
|
static int |
NO_COLUMN
signal that column is not known |
static java.io.File |
NO_FILE
non-null but empty (nonexisting) File constant |
Method Summary | |
---|---|
int |
getColumn()
|
java.lang.String |
getContext()
|
int |
getEndLine()
|
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) |
Field Detail |
---|
static final int MAX_LINE
static final int MAX_COLUMN
static final java.io.File NO_FILE
static final int NO_COLUMN
static final ISourceLocation EMPTY
Method Detail |
---|
java.io.File getSourceFile()
int getLine()
int getColumn()
int getOffset()
int getEndLine()
java.lang.String getContext()
java.lang.String getSourceFileName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |