|
|||||||
| 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 - origin
public Origin(String file,
int line,
int col)
file - file nameline - line numbercol - column number| Method Detail |
|---|
public int compareTo(Origin o)
compareTo in interface Comparable<Origin>public boolean equals(Object obj)
equals in class Objectpublic int getColumn()
public String getFile()
public int getLine()
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||