cakoose.util.parser
Class FSourcePos
java.lang.Object
cakoose.util.parser.FSourcePos
public final class FSourcePos
- extends Object
fileName
public final String fileName
line
public final int line
column
public final int column
FSourcePos
public FSourcePos(String fileName,
int line,
int column)
toString
public void toString(StringBuilder builder)
toString
public String toString()
- Overrides:
toString in class Object
toStringRelative
public String toStringRelative(FSourcePos 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,
FSourcePos other)