Class Where
- java.lang.Object
-
- ru.ispras.microtesk.translator.antlrex.symbols.Where
-
public final class Where extends java.lang.Object
TheWhere
class describes a location in a source file.
-
-
Constructor Summary
Constructors Constructor Description Where(java.lang.String unit, int line, int position)
Constructs the object from unit name, line number and position.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
getUnit
public java.lang.String getUnit()
Returns the name of the source file (unit).- Returns:
- Source file (unit) name.
-
getLine
public int getLine()
Returns the line number.- Returns:
- Line number.
-
getPosition
public int getPosition()
Returns the position in the line.- Returns:
- Position in the line.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-