@Override public void startCDATA() throws SAXException { processChars(); // Flush char buffer and remove white spaces startMark = new Mark(ctxt, path, locator.getLineNumber(), locator.getColumnNumber()); }
file = where.getURL().toString(); } catch (MalformedURLException me) { file = where.getFile(); file = where.getFile(); + where.getLineNumber() + "," + where.getColumnNumber() + ")" + " " + je.getMessage()); newEx.setStackTrace(je.getStackTrace());
/** * This method avoids a call to {@link #mark()} when doing comparison. */ private boolean markEquals(Mark another) { return another.equals(current); }
private void doSmap( Node n, int inLineCount, int outIncrement, int skippedLines) { Mark mark = n.getStart(); if (mark == null) { return; } String unqualifiedName = unqualify(mark.getFile()); smap.addFile(unqualifiedName, mark.getFile()); smap.addLineData( mark.getLineNumber() + skippedLines, mark.getFile(), inLineCount - skippedLines, n.getBeginJavaLine() + skippedLines, outIncrement); }
caw.close(); if (current == null) { current = new Mark(this, caw.toCharArray(), fileid, getFile(fileid), master, encoding); } else { current.pushStream(caw.toCharArray(), fileid, getFile(fileid), longName, encoding);
@Override public String toString() { return getFile()+"("+line+","+col+")"; }
Mark previous = current.popStream(); if (previous != null) { master = current.baseDir;
private void checkUniqueName(String name, String type, Node n, TagAttributeInfo attr) throws JasperException { Map<String, NameEntry> table = (VAR_NAME_FROM.equals(type)) ? nameFromTable : nameTable; NameEntry nameEntry = table.get(name); if (nameEntry != null) { if (!TAG_DYNAMIC.equals(type) || !TAG_DYNAMIC.equals(nameEntry.getType())) { int line = nameEntry.getNode().getStart().getLineNumber(); err.jspError(n, "jsp.error.tagfile.nameNotUnique", type, nameEntry.getType(), Integer.toString(line)); } } else { table.put(name, new NameEntry(type, n, attr)); } }
sb.append(n.getStart().toString()); sb.append(" '"); sb.append(attrValue);
caw.close(); if (current == null) { current = new Mark(this, caw.toCharArray(), fileid, getFile(fileid), master, encoding); } else { current.pushStream(caw.toCharArray(), fileid, getFile(fileid), longName, encoding);
private void doSmap( Node n, int inLineCount, int outIncrement, int skippedLines) { Mark mark = n.getStart(); if (mark == null) { return; } String unqualifiedName = unqualify(mark.getFile()); smap.addFile(unqualifiedName, mark.getFile()); smap.addLineData( mark.getLineNumber() + skippedLines, mark.getFile(), inLineCount - skippedLines, n.getBeginJavaLine() + skippedLines, outIncrement); }
/** * Gets the URL of the resource with which this Mark is associated * * @return URL of the resource with which this Mark is associated * * @exception MalformedURLException if the resource pathname is incorrect */ public URL getURL() throws MalformedURLException { return ctxt.getResource(getFile()); }
Mark previous = current.popStream(); if (previous != null) { master = current.baseDir;
private void checkUniqueName(String name, String type, Node n, TagAttributeInfo attr) throws JasperException { HashMap<String, NameEntry> table = (type == VAR_NAME_FROM) ? nameFromTable : nameTable; NameEntry nameEntry = table.get(name); if (nameEntry != null) { if (!TAG_DYNAMIC.equals(type) || !TAG_DYNAMIC.equals(nameEntry.getType())) { int line = nameEntry.getNode().getStart().getLineNumber(); err.jspError(n, "jsp.error.tagfile.nameNotUnique", type, nameEntry.getType(), Integer.toString(line)); } } else { table.put(name, new NameEntry(type, n, attr)); } }
sb.append(n.getStart().toString()); sb.append(" '"); sb.append(attrValue);
file = where.getURL().toString(); } catch (MalformedURLException me) { file = where.getFile(); file = where.getFile(); line = where.getLineNumber(); column = where.getColumnNumber(); hasLocation = true;
caw.close(); if (current == null) { current = new Mark(this, caw.toCharArray(), fileid, getFile(fileid), master, encoding); } else { current.pushStream(caw.toCharArray(), fileid, getFile(fileid), longName, encoding);
private void doSmap( Node n, int inLineCount, int outIncrement, int skippedLines) { Mark mark = n.getStart(); if (mark == null) { return; } String unqualifiedName = unqualify(mark.getFile()); smapStratum.addFile(unqualifiedName, mark.getFile()); smapStratum.addLineData( mark.getLineNumber() + skippedLines, mark.getFile(), inLineCount - skippedLines, n.getBeginJavaLine() + skippedLines, outIncrement); }
public void startCDATA() throws SAXException { processChars(); // Flush char buffer and remove white spaces startMark = new Mark(ctxt, path, locator.getLineNumber(), locator.getColumnNumber()); }
/** * Gets the URL of the resource with which this Mark is associated * * @return URL of the resource with which this Mark is associated * * @exception MalformedURLException if the resource pathname is incorrect */ public URL getURL() throws MalformedURLException { return ctxt.getResource(getFile()); }