Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

de.hunsicker.jalopy.language
Class Annotation  view Annotation download Annotation.java

java.lang.Object
  extended byde.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.
 
Constructor Summary
Annotation(int line, java.lang.Object data)
          Creates a new Annotation object.
 
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
 

Field Detail

_data

private final java.lang.Object _data
The application specific annotation data.


_line

private int _line
The line number where the annotation belongs to.

Constructor Detail

Annotation

public Annotation(int line,
                  java.lang.Object data)
Creates a new Annotation object.

Method Detail

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.