|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.util.source.SourceCodeLocation.Position
public static class SourceCodeLocation.Position
Defines a position in the source code.
Constructor Summary | |
---|---|
SourceCodeLocation.Position(long line, long column) Default constructor. |
Method Summary | |
---|---|
int |
compareTo(SourceCodeLocation.Position other) |
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
long |
getColumn() Returns the column number of the position. |
long |
getLine() Returns the line number of the position. |
int |
hashCode() Returns the hash code of the object. |
String |
toString() Delegates call to StringBuilder.toString() . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SourceCodeLocation.Position(long line, long column) throws IllegalArgumentException
line
- the line number of the position.
column
- the column number of the position.
IllegalArgumentException
- if
line
or
column
is smaller than
1
.
Method Detail |
---|
public long getLine()
1
.
public long getColumn()
1
.
public int compareTo(SourceCodeLocation.Position other)
compareTo
in interface
Comparable<SourceCodeLocation.Position>
public int hashCode()
hashCode
in class
Object
public boolean equals(Object object)
true
if the given object is semantically equal to the given object,
false
otherwise.
equals
in class
Object
object
- the instance to compare to.
true
if the given object is semantically equal to the given object,
false
otherwise.
public String toString()
StringBuilder.toString()
.
toString
in class
Object
StringBuilder.toString()
.
StringBuilder.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |