
public class TokenData implements Cloneable {
	private String matchText;
	private Symbol token;
	private int columnIndex;
	private int rowIndex;
	private String fileName;
	public TokenData() {
	}
	public void setToken(Symbol token) {
		this.token = token;
	}
	public Symbol getToken() {
		return token;
	}
	public String getMatchText() {
		return matchText;
	}
	public void setMatchText(String value) {
		matchText = value;
	}
	public void setColumnIndex(int columnNumber) {
		this.columnIndex = columnNumber;
	}
	public int getColumnIndex() {
		return columnIndex;
	}
	public void setRowIndex(int rowNumber) {
		this.rowIndex = rowNumber;
	}
	public int getRowIndex() {
		return rowIndex;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getFileName() {
		return fileName;
	}
	@Override
	protected Object clone() throws CloneNotSupportedException {
		TokenData result = new TokenData();
		result.matchText = matchText;
		result.token = token;
		result.columnIndex = columnIndex;
		result.rowIndex = rowIndex;
		result.fileName = fileName;
		return super.clone();
	}
	@Override
	public String toString() {
		return String.format("[%s %s]", token.toString(), matchText.toString());
	}
}
