Package org.aspectj.bridge
Schnittstelle ISourceLocation
- Alle Superschnittstellen:
Serializable
- Alle bekannten Implementierungsklassen:
EclipseSourceLocation
,SourceLocation
Represent source location as a starting line/column and ending line in a source file. Implementations should be immutable. XXX
why?
- Siehe auch:
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final ISourceLocation
non-null but empty constant source locationstatic final int
static final int
static final int
signal that column is not knownstatic final File
non-null but empty (nonexisting) File constant -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
int
int
getLine()
int
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)
-
Felddetails
-
MAX_LINE
static final int MAX_LINE- Siehe auch:
-
MAX_COLUMN
static final int MAX_COLUMN- Siehe auch:
-
NO_FILE
non-null but empty (nonexisting) File constant -
NO_COLUMN
static final int NO_COLUMNsignal that column is not known- Siehe auch:
-
EMPTY
non-null but empty constant source location
-
-
Methodendetails
-
getSourceFile
File getSourceFile()- Gibt zurück:
- File source or NO_FILE if the implementation requires a non-null result or null otherwise
-
getLine
int getLine()- Gibt zurück:
- 0..MAX_LINE
-
getColumn
int getColumn()- Gibt zurück:
- int 0..MAX_COLUMN actual column or 0 if column input was ISourceLocation.NO_COLUMN
-
getOffset
int getOffset()- Gibt zurück:
- offset into file
-
getEndLine
int getEndLine()- Gibt zurück:
- getLine()..MAX_LINE
-
getContext
String getContext()- Gibt zurück:
- String application-specific context for source
-
getSourceFileName
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)- Gibt zurück:
- the name of the source file
-