protected Locator createLocator ( final Token t ) { return new Locator ( getInputSource ( ) . getURI ( ) , t == null ? 0 : t . beginLine , t == null ? 0 : t . beginColumn ) ; }
Returns a new locator for the given token .