dev.youshallnotpass.inspection.sources.java.JavaSourceMask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-inspections Show documentation
Show all versions of java-inspections Show documentation
Java inspections library for youshallnotpass
The newest version!
package dev.youshallnotpass.inspection.sources.java;
import dev.youshallnotpass.inspection.sources.PathSourceMask;
import dev.youshallnotpass.inspection.sources.SourceMask;
import java.nio.file.Path;
public final class JavaSourceMask implements SourceMask {
private final SourceMask origin;
public JavaSourceMask() {
this(new PathSourceMask("glob:**/*.java"));
}
private JavaSourceMask(final SourceMask origin) {
this.origin = origin;
}
@Override
public boolean matches(final Path path) {
return origin.matches(path);
}
}