java.lang.Object
de.hunsicker.jalopy.language.Annotation
- public final class Annotation
- extends java.lang.Object
A class that wraps some application specific annotation data. It can be used to track
the position information for things like debugger breakpoints, erroneous lines, and
so on.
- Since:
- 1.0b9
- Version:
- $Revision: 1.2 $
|
Field Summary |
private java.lang.Object |
_data
The application specific annotation data. |
private int |
_line
The line number where the annotation belongs to. |
|
Method Summary |
java.lang.Object |
getData()
Returns the application specific annotation data. |
int |
getLine()
Returns the (1-based) line number where this annotation belongs. |
void |
setLine(int line)
Sets the line number where this annotation belongs. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_data
private final java.lang.Object _data
- The application specific annotation data.
_line
private int _line
- The line number where the annotation belongs to.
Annotation
public Annotation(int line,
java.lang.Object data)
- Creates a new Annotation object.
getData
public java.lang.Object getData()
- Returns the application specific annotation data.
setLine
public void setLine(int line)
- Sets the line number where this annotation belongs.
getLine
public int getLine()
- Returns the (1-based) line number where this annotation belongs.