Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

SourceLocationImpl.java 1.2KB

vor 21 Jahren
vor 21 Jahren
vor 21 Jahren
vor 21 Jahren
vor 21 Jahren
vor 21 Jahren
vor 21 Jahren
vor 21 Jahren
vor 21 Jahren
123456789101112131415161718192021222324252627282930313233343536373839
  1. /* *******************************************************************
  2. * Copyright (c) 1999-2001 Xerox Corporation,
  3. * 2002 Palo Alto Research Center, Incorporated (PARC).
  4. * All rights reserved.
  5. * This program and the accompanying materials are made available
  6. * under the terms of the Eclipse Public License v 2.0
  7. * which accompanies this distribution and is available at
  8. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  9. *
  10. * Contributors:
  11. * Xerox/PARC initial implementation
  12. * ******************************************************************/
  13. package org.aspectj.runtime.reflect;
  14. import org.aspectj.lang.reflect.SourceLocation;
  15. class SourceLocationImpl implements SourceLocation {
  16. Class<?> withinType;
  17. String fileName;
  18. int line;
  19. SourceLocationImpl(Class<?> withinType, String fileName, int line) {
  20. this.withinType = withinType;
  21. this.fileName = fileName;
  22. this.line = line;
  23. }
  24. public Class getWithinType() { return withinType; }
  25. public String getFileName() { return fileName; }
  26. public int getLine() { return line; }
  27. public int getColumn() { return -1; }
  28. public String toString() {
  29. return getFileName() + ":" + getLine();
  30. }
  31. }