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

gherkin.ast.Feature Maven / Gradle / Ivy

package gherkin.ast;

import java.util.Collections;
import java.util.List;

public class Feature extends Node {
    private final List tags;
    private final String language;
    private final String keyword;
    private final String name;
    private final String description;
    private final Background background;
    private final List scenarioDefinitions;
    private final List comments;

    public Feature(
            List tags,
            Location location,
            String language,
            String keyword,
            String name,
            String description,
            Background background,
            List scenarioDefinitions,
            List comments) {
        super(location);
        this.tags = Collections.unmodifiableList(tags);
        this.language = language;
        this.keyword = keyword;
        this.name = name;
        this.description = description;
        this.background = background;
        this.scenarioDefinitions = Collections.unmodifiableList(scenarioDefinitions);
        this.comments = Collections.unmodifiableList(comments);
    }

    public List getScenarioDefinitions() {
        return scenarioDefinitions;
    }

    public Background getBackground() {
        return background;
    }

    public String getLanguage() {
        return language;
    }

    public String getKeyword() {
        return keyword;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public List getTags() {
        return tags;
    }

    public List getComments() {
        return comments;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy