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

org.babyfish.jimmer.client.source.SourceFile Maven / Gradle / Ivy

There is a newer version: 0.9.35
Show newest version
package org.babyfish.jimmer.client.source;

import org.babyfish.jimmer.client.generator.Render;
import org.jetbrains.annotations.Nullable;

import java.util.List;
import java.util.Objects;

class SourceFile extends AbstractSource {

    private final List dirs;

    private final String name;

    public SourceFile(List dirs, String name, Render render) {
        super(render);
        this.dirs = dirs;
        this.name = Objects.requireNonNull(name, "source name cannot be null");
    }

    @Override
    public List getDirs() {
        return dirs;
    }

    @Override
    public String getName() {
        return name;
    }

    @Nullable
    @Override
    public Source getParent() {
        return null;
    }

    @Override
    public Source getRoot() {
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy