
io.codemodder.RawFileCodemodRunner 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 java.io.IOException;
import java.nio.file.Path;
import java.util.List;
import java.util.Objects;
/**
* {@inheritDoc}
*
* This type specializes in non-Java file.
*/
final class RawFileCodemodRunner implements CodemodRunner {
private final RawFileChanger changer;
RawFileCodemodRunner(final RawFileChanger changer) {
this.changer = Objects.requireNonNull(changer);
}
@Override
public boolean supports(final Path path) {
return true;
}
@Override
public List run(final CodemodInvocationContext context) throws IOException {
return changer.visitFile(context);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy