/** * Creates a new LocatorImpl */ public LocatorImpl(Parser p) { if (W3CDebug) { System.err.println( "LocatorImpl::newLocator(" + p + ");"); } uri = p.source.getURI(); line = p.token.beginLine; column = p.token.beginColumn; }
/** * Reinitializes a LocatorImpl */ public LocatorImpl(Parser p, Token tok) { if (W3CDebug) { System.err.println( "LocatorImpl::newLocator(" + p + ", " + tok + ");"); } uri = p.source.getURI(); line = tok.beginLine; column = tok.beginColumn; }
/** * Reinitializes a LocatorImpl */ public LocatorImpl reInit(Parser p) { if (W3CDebug) { System.err.println("LocatorImpl::reInit(" + p + ");"); } uri = p.source.getURI(); line = p.token.beginLine; column = p.token.beginColumn; return this; }
/** * Reinitializes a LocatorImpl */ public LocatorImpl reInit(Parser p) { if (W3CDebug) { System.err.println( "LocatorImpl::reInit(" + p + ");" ); } uri = p.source.getURI(); line = p.token.beginLine; column = p.token.beginColumn; return this; }
/** * Reinitializes a LocatorImpl */ public LocatorImpl(Parser p, int line, int column) { if (W3CDebug) { System.err.println("LocatorImpl::newLocator(" + p + ", " + line + ", " + column + ");"); } uri = p.source.getURI(); this.line = line; this.column = column; }
/** * Reinitializes a LocatorImpl */ public LocatorImpl reInit(Parser p, Token tok) { if (W3CDebug) { System.err.println("LocatorImpl::reInit(" + p + ", " + tok + ");"); } uri = p.source.getURI(); line = tok.beginLine; column = tok.beginColumn; return this; }
/** * Creates a new LocatorImpl */ public LocatorImpl( Parser p ) { if ( W3CDebug ) { System.err.println( "LocatorImpl::newLocator(" + p + ");" ); } uri = p.source.getURI(); line = p.token.beginLine; column = p.token.beginColumn; }
/** * Reinitializes a LocatorImpl */ public LocatorImpl reInit( Parser p ) { if ( W3CDebug ) { System.err.println( "LocatorImpl::reInit(" + p + ");" ); } uri = p.source.getURI(); line = p.token.beginLine; column = p.token.beginColumn; return this; }
/** * Creates a new LocatorImpl */ public LocatorImpl(Parser p) { if (W3CDebug) { System.err.println("LocatorImpl::newLocator(" + p + ");"); } uri = p.source.getURI(); line = p.token.beginLine; column = p.token.beginColumn; }
/** * Reinitializes a LocatorImpl */ public LocatorImpl( Parser p, Token tok ) { if ( W3CDebug ) { System.err.println( "LocatorImpl::newLocator(" + p + ", " + tok + ");" ); } uri = p.source.getURI(); line = tok.beginLine; column = tok.beginColumn; }
/** * Reinitializes a LocatorImpl */ public LocatorImpl(Parser p, Token tok) { if (W3CDebug) { System.err.println("LocatorImpl::newLocator(" + p + ", " + tok + ");"); } uri = p.source.getURI(); line = tok.beginLine; column = tok.beginColumn; }
/** * Reinitializes a LocatorImpl */ public LocatorImpl(Parser p, int line, int column) { if (W3CDebug) { System.err.println( "LocatorImpl::newLocator(" + p + ", " + line + ", " + column + ");"); } uri = p.source.getURI(); this.line = line; this.column = column; }
/** * Reinitializes a LocatorImpl */ public LocatorImpl( Parser p, int line, int column ) { if ( W3CDebug ) { System.err.println( "LocatorImpl::newLocator(" + p + ", " + line + ", " + column + ");" ); } uri = p.source.getURI(); this.line = line; this.column = column; }
/** * Reinitializes a LocatorImpl */ public LocatorImpl reInit( Parser p, Token tok ) { if ( W3CDebug ) { System.err.println( "LocatorImpl::reInit(" + p + ", " + tok + ");" ); } uri = p.source.getURI(); line = tok.beginLine; column = tok.beginColumn; return this; }
/** * Reinitializes a LocatorImpl */ public LocatorImpl reInit(Parser p, Token tok) { if (W3CDebug) { System.err.println( "LocatorImpl::reInit(" + p + ", " + tok + ");"); } uri = p.source.getURI(); line = tok.beginLine; column = tok.beginColumn; return this; }
/** * Reinitializes a LocatorImpl */ public LocatorImpl reInit(Parser p, int line, int column) { if (W3CDebug) { System.err.println("LocatorImpl::reInit(" + p + ", " + line + ", " + column + ");"); } uri = p.source.getURI(); this.line = line; this.column = column; return this; } }
@Override public void startDocument( InputSource source ) throws CSSException { uri = source.getURI(); log( "=== startDocument " + uri + "===" ); }
protected Locator createLocator(final Token t) { return new LocatorImpl(getInputSource().getURI(), t == null ? 0 : t.beginLine, t == null ? 0 : t.beginColumn); }
protected CSSParseException toCSSParseException(final TokenMgrError e) { final String messagePattern = getSACParserMessages().getString("tokenMgrError"); return new CSSParseException(messagePattern, getInputSource().getURI(), 1, 1); }
protected CSSParseException toCSSParseException(final DOMException e) { final String messagePattern = getSACParserMessages().getString("domException"); return new CSSParseException( MessageFormat.format(messagePattern, e.getMessage()), getInputSource().getURI(), 1, 1); }