package bluej.parser;


| A line/column location in a source file. | | Note that all line/column numbers start counting from 1. | | @author Andrew Patterson | public class SourceLocation { private int line; private int column; public SourceLocation(int line, int column) { if (line < 1 || column < 1) { throw new IllegalArgumentException("line/column numbers must be > 0"); } this.line = line; this.column = column; }
| Gets the line number of this location | public int getLine() { return line; }
| Gets the column where this node reside | @return <code>int</code> | public int getColumn() { return column; } @Override public String toString() { return "<" + line + "," + column + ">"; } }
top, use, map, class SourceLocation

.   SourceLocation
.   getLine
.   getColumn
.   toString




45 neLoCode + 6 LoComm