1. /*
  2. * @(#)SourcePosition.java 1.9 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.javadoc;
  8. import java.io.File;
  9. /**
  10. * This interface describes a source position: filename, line number,
  11. * and column number.
  12. *
  13. * @since 1.4
  14. * @author Neal M Gafter
  15. */
  16. public interface SourcePosition {
  17. /** The source file. Returns null if no file information is
  18. * available. */
  19. File file();
  20. /** The line in the source file. The first line is numbered 1;
  21. * 0 means no line number information is available. */
  22. int line();
  23. /** The column in the source file. The first column is
  24. * numbered 1; 0 means no column information is available.
  25. * Columns count characters in the input stream; a tab
  26. * advances the column number to the next 8-column tab stop.
  27. */
  28. int column();
  29. /** Convert the source position to the form "Filename:line". */
  30. String toString();
  31. }