1 13 14 15 package org.aspectj.runtime.reflect; 16 17 import org.aspectj.lang.reflect.SourceLocation; 18 19 class SourceLocationImpl implements SourceLocation { 20 Class withinType; 21 String fileName; 22 int line; 23 24 SourceLocationImpl(Class withinType, String fileName, int line) { 25 this.withinType = withinType; 26 this.fileName = fileName; 27 this.line = line; 28 } 29 30 public Class getWithinType() { return withinType; } 31 public String getFileName() { return fileName; } 32 public int getLine() { return line; } 33 public int getColumn() { return -1; } 34 35 public String toString() { 36 return getFileName() + ":" + getLine(); 37 } 38 } 39 40 | Popular Tags |