public class Match
extends java.lang.Object
This supports the storage of a line number, column number and a string.
Modifier and Type | Field and Description |
---|---|
private int |
column
Column number of the beginning of the match in the file.
|
private int |
line
Line number of the beginning of the match in the file.
|
private java.lang.String |
text
The user-defined text of the match.
|
Constructor and Description |
---|
Match(int line,
int column,
java.lang.String text)
Constructs an instance with user-defined data.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Accesses the column number of the beginning of the match in the file.
|
int |
getLine()
Accesses the line number of the beginning of the match in the file.
|
java.lang.String |
getText()
Accesses the user-defined text for this match.
|
void |
setColumn(int column)
Sets the column number of the beginning of the match in the file.
|
void |
setLine(int line)
Sets the line number of the beginning of the match in the file.
|
void |
setText(java.lang.String text)
Sets the user-defined text for this match.
|
private int line
private int column
private java.lang.String text
public Match(int line, int column, java.lang.String text)
line
- The line number of the beginning of the match in the file.column
- The column number of the beginning of the match in the file.text
- Stores the text of the match.public int getLine()
public void setLine(int line)
line
- The line number of the beginning of the match in the file.public int getColumn()
public void setColumn(int column)
column
- The column number of the beginning of the match in the file.public java.lang.String getText()
public void setText(java.lang.String text)
text
- The user-defined text for this match.