Klasse EclipseSourceLocation

java.lang.Object
org.aspectj.ajdt.internal.compiler.lookup.EclipseSourceLocation
Alle implementierten Schnittstellen:
Serializable, ISourceLocation

public class EclipseSourceLocation extends Object implements ISourceLocation
Siehe auch:
  • Konstruktordetails

    • EclipseSourceLocation

      public EclipseSourceLocation(CompilationResult result, int startPos, int endPos)
  • Methodendetails

    • getCompilationResult

      public CompilationResult getCompilationResult()
    • getOffset

      public int getOffset()
      Angegeben von:
      getOffset in Schnittstelle ISourceLocation
      Gibt zurück:
      offset into file
    • getStartPos

      public int getStartPos()
    • getEndPos

      public int getEndPos()
    • getSourceFile

      public File getSourceFile()
      Angegeben von:
      getSourceFile in Schnittstelle ISourceLocation
      Gibt zurück:
      File source or NO_FILE if the implementation requires a non-null result or null otherwise
    • getLine

      public int getLine()
      Angegeben von:
      getLine in Schnittstelle ISourceLocation
      Gibt zurück:
      0..MAX_LINE
    • getColumn

      public int getColumn()
      Angegeben von:
      getColumn in Schnittstelle ISourceLocation
      Gibt zurück:
      int 0..MAX_COLUMN actual column or 0 if column input was ISourceLocation.NO_COLUMN
    • getEndLine

      public int getEndLine()
      Angegeben von:
      getEndLine in Schnittstelle ISourceLocation
      Gibt zurück:
      getLine()..MAX_LINE
    • getContext

      public String getContext()
      Angegeben von:
      getContext in Schnittstelle ISourceLocation
      Gibt zurück:
      String application-specific context for source
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      String {file:}line{:column}
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • equals

      public boolean equals(Object other)
      Setzt außer Kraft:
      equals in Klasse Object
    • getSourceFileName

      public String getSourceFileName()
      Beschreibung aus Schnittstelle kopiert: 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)
      Angegeben von:
      getSourceFileName in Schnittstelle ISourceLocation
      Gibt zurück:
      the name of the source file