All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.youshallnotpass.inspection.sources.java.JavaSourceMask Maven / Gradle / Ivy

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy