Jalopy 1.0b10

de.hunsicker.jalopy.language
Class Annotation

java.lang.Object
  |
  +--de.hunsicker.jalopy.language.Annotation

public final class Annotation
extends 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 $
Author:
Marco Hunsicker
See Also:
JavaRecognizer.attachAnnotations(java.util.List)

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

Constructor Detail

Annotation

public Annotation(int line,
                  Object data)
Creates a new Annotation object.
Parameters:
line - the line number to which the annotation is attached.
data - the application specific annotation data.
Method Detail

getData

public Object getData()
Returns the application specific annotation data.
Returns:
annotation data.

setLine

public void setLine(int line)
Sets the line number where this annotation belongs.
Parameters:
line - line number (>= 1).
Throws:
IllegalArgumentException - if line < 1

getLine

public int getLine()
Returns the (1-based) line number where this annotation belongs.
Returns:
the line number where this annotation belongs (>= 1).

Jalopy 1.0b10

Submit a bug or feature.

For further information and documentation, visit the official Jalopy website.
This page generated: November 14 2002