Schnittstelle ISourceLocation

Alle Superschnittstellen:
Serializable
Alle bekannten Implementierungsklassen:
SourceLocation

public interface ISourceLocation extends Serializable
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

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final ISourceLocation
    non-null but empty constant source location
    static final int
     
    static final int
     
    static final int
    signal that column is not known
    static final File
    non-null but empty (nonexisting) File constant
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
     
     
    int
     
    int
     
    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

      static final File NO_FILE
      non-null but empty (nonexisting) File constant
    • NO_COLUMN

      static final int NO_COLUMN
      signal that column is not known
      Siehe auch:
    • EMPTY

      static final ISourceLocation 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