Code example for URI

Methods: getAuthority, getPath, getScheme

0
	@Override 
	public String getMessage() {
		if (loc != null) {
			URI url = loc.getURI();
			 
			return (url.getScheme().equals("file") ? (url.getAuthority() + url.getPath()) : url) 
					+ ":" + loc.getBeginLine() 
					+ "," + loc.getBeginColumn() 
					+ ": " + super.getMessage(); 
		} 
		 
		// TODO remove once all errors have locations 
		return super.getMessage(); 
	} 
	 
}