cs132.util
Class SourcePos
java.lang.Object
cs132.util.SourcePos
public final class SourcePos
- extends Object
Constructor Summary |
SourcePos(int line,
int column)
|
line
public final int line
column
public final int column
SourcePos
public SourcePos(int line,
int column)
toString
public void toString(StringBuilder builder)
toString
public String toString()
- Overrides:
toString
in class Object
toStringRelative
public String toStringRelative(SourcePos other)
- Shows this location relative to another location. If the two
locations are on different lines, this function behaves the
same as toString() does. Otherwise, only the column number is
shown.
toStringRelative
public void toStringRelative(StringBuilder builder,
SourcePos other)