public final class Where
extends java.lang.Object
Where
class describes a location in a source file.Constructor and Description |
---|
Where(java.lang.String unit,
int line,
int position)
Constructs the object from unit name, line number and position.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getLine()
Returns the line number.
|
int |
getPosition()
Returns the position in the line.
|
java.lang.String |
getUnit()
Returns the name of the source file (unit).
|
int |
hashCode() |
java.lang.String |
toString() |
public Where(java.lang.String unit, int line, int position)
unit
- Source file (unit) name.line
- Number of the line.position
- Position in the line.public java.lang.String getUnit()
public int getLine()
public int getPosition()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object