public class SourcePosition extends java.lang.Object implements StringRepresentation
| Constructor and Description |
|---|
SourcePosition(int line,
int column)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Returns the column.
|
int |
getLine()
Returns the line.
|
java.lang.String |
getStringRepresentation()
Returns a user-readable string representation of the object.
|
java.lang.String |
toString() |
public SourcePosition(int line,
int column)
line - the line.column - the column.public int getLine()
public int getColumn()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getStringRepresentation()
StringRepresentationgetStringRepresentation in interface StringRepresentation