|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jmlspecs.jml4.rac.runtime.JMLAssertionError.Location
public static class JMLAssertionError.Location
Data structure class to represent a source code location including file name, line number, and character position.
| Field Summary | |
|---|---|
int |
character
1-based position of a character in a line. |
java.lang.String |
file
File name |
int |
line
1-based line number. |
| Constructor Summary | |
|---|---|
JMLAssertionError.Location(java.lang.String file,
int line)
Creates a new location with the given information. |
|
JMLAssertionError.Location(java.lang.String file,
int line,
int character)
Creates a new location with the given information. |
|
| Method Summary | |
|---|---|
java.lang.String |
toString()
Returns a string representation of this location. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String file
public int line
public int character
| Constructor Detail |
|---|
public JMLAssertionError.Location(java.lang.String file,
int line,
int character)
public JMLAssertionError.Location(java.lang.String file,
int line)
| Method Detail |
|---|
public java.lang.String toString()
File "T.java", line 10, character 20It is the form used by JML2, and this makes JML4 output compatible to that of JML2; there are tools use error messages of the above form to locate the corresponding source code line.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||