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

com.structurizr.dsl.IncludedDslContext Maven / Gradle / Ivy

The newest version!
package com.structurizr.dsl;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

final class IncludedDslContext extends DslContext {

    private final File parentFile;
    private final List files = new ArrayList<>();

    IncludedDslContext(File parentFile) {
        this.parentFile = parentFile;
    }

    File getParentFile() {
        return parentFile;
    }

    void addFile(File file, List lines) {
        this.files.add(new IncludedFile(file, lines));
    }

    List getFiles() {
        return new ArrayList<>(files);
    }

    @Override
    protected String[] getPermittedTokens() {
        return new String[0];
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy