|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.brics.misc.Origin
public class Origin
Representation of source point.
Constructor Summary | |
---|---|
Origin(String str)
Constructs an origin object from its string representation. |
|
Origin(String file,
int line,
int col)
Constructs a new origin object. |
Method Summary | |
---|---|
int |
compareTo(Origin o)
|
boolean |
equals(Object obj)
|
int |
getColumn()
Returns the column number. |
String |
getFile()
Returns the file name. |
int |
getLine()
Returns the line number. |
int |
hashCode()
|
String |
toString()
Returns string representation of this origin. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Origin(String str)
str
- originpublic Origin(String file, int line, int col)
file
- file nameline
- line numbercol
- column numberMethod Detail |
---|
public int compareTo(Origin o)
compareTo
in interface Comparable<Origin>
public boolean equals(Object obj)
equals
in class Object
public int getColumn()
public String getFile()
public int getLine()
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |