Code example for Locator

Methods: getColumnNumber, getLineNumber

0
	 */ 
	private void sendError(String message)
	{ 
		if (this._errorHandler != null && this._locator != null)
		{ 
			int line = this._locator.getLineNumber();
			int column = this._locator.getColumnNumber();
 
			if (line == -1)
			{ 
				Matcher m = PARSE_ERROR_LINE_NUMBER.matcher(message);
 
				if (m.find())
				{ 
					line = Integer.parseInt(m.group(1));
				} 
				else 
				{ 
					line = 0;
				} 
			}