io.codemodder.XPathStreamEventHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codemodder-base Show documentation
Show all versions of codemodder-base Show documentation
Base framework for writing codemods in Java
package io.codemodder;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLEventWriter;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.events.XMLEvent;
/** A handler for {@link XMLEvent}s that match an XPath expression. */
public interface XPathStreamEventHandler {
/** Handle an {@link XMLEvent} that matched an XPath expression. */
void handle(XMLEventReader xmlReader, XMLEventWriter xmlWriter, XMLEvent currentEvent)
throws XMLStreamException;
}