public class Callout
extends java.lang.Object
implements java.lang.Comparable
A class for maintaining information about callouts.
To make processing callouts easier, they are parsed out of the input structure and stored in a sorted array. (The array is sorted according to the order in which the callouts occur.)
This class is just the little record that we store in the array for each callout.
Constructor and Description |
---|
Callout(int callout,
org.w3c.dom.Element area,
int line,
int col)
The constructor; initialize the private data structures.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
The compareTo method compares this Callout with another.
|
org.w3c.dom.Element |
getArea()
Access the Callout's area.
|
int |
getCallout()
Access the Callout's callout number.
|
int |
getColumn()
Access the Callout's column.
|
int |
getLine()
Access the Callout's line.
|
public Callout(int callout, org.w3c.dom.Element area, int line, int col)
public int compareTo(java.lang.Object o)
The compareTo method compares this Callout with another.
Given two Callouts, A and B, A < B if:
compareTo
in interface java.lang.Comparable
public org.w3c.dom.Element getArea()
public int getLine()
public int getColumn()
public int getCallout()