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

gherkin.formatter.model.Match Maven / Gradle / Ivy

The newest version!
package gherkin.formatter.model;

import gherkin.formatter.Argument;
import gherkin.formatter.Mappable;
import gherkin.formatter.Reporter;

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

public class Match extends Mappable {
    private static final long serialVersionUID = 1L;

    private final List arguments;
    private final String location;
    public static final Match UNDEFINED = new Match(Collections.emptyList(), null);

    public Match(List arguments, String location) {
        this.arguments = arguments;
        this.location = location;
    }

    public List getArguments() {
        return arguments;
    }

    public String getLocation() {
        return location;
    }

    public void replay(Reporter reporter) {
        reporter.match(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy