Class EclipseSourceLocation
java.lang.Object
org.aspectj.ajdt.internal.compiler.lookup.EclipseSourceLocation
- All Implemented Interfaces:
Serializable
,ISourceLocation
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from interface org.aspectj.bridge.ISourceLocation
EMPTY, MAX_COLUMN, MAX_LINE, NO_COLUMN, NO_FILE
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EclipseSourceLocation
-
-
Method Details
-
getCompilationResult
-
getOffset
public int getOffset()- Specified by:
getOffset
in interfaceISourceLocation
- Returns:
- offset into file
-
getStartPos
public int getStartPos() -
getEndPos
public int getEndPos() -
getSourceFile
- Specified by:
getSourceFile
in interfaceISourceLocation
- Returns:
- File source or NO_FILE if the implementation requires a non-null result or null otherwise
-
getLine
public int getLine()- Specified by:
getLine
in interfaceISourceLocation
- Returns:
- 0..MAX_LINE
-
getColumn
public int getColumn()- Specified by:
getColumn
in interfaceISourceLocation
- Returns:
- int 0..MAX_COLUMN actual column or 0 if column input was ISourceLocation.NO_COLUMN
-
getEndLine
public int getEndLine()- Specified by:
getEndLine
in interfaceISourceLocation
- Returns:
- getLine()..MAX_LINE
-
getContext
- Specified by:
getContext
in interfaceISourceLocation
- Returns:
- String application-specific context for source
-
toString
-
hashCode
public int hashCode() -
equals
-
getSourceFileName
Description copied from interface:ISourceLocation
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)- Specified by:
getSourceFileName
in interfaceISourceLocation
- Returns:
- the name of the source file
-