io.cucumber.plugin.event.SnippetsSuggestedEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-plugin Show documentation
Show all versions of cucumber-plugin Show documentation
Plugin interface for Cucumber-JVM
package io.cucumber.plugin.event;
import org.apiguardian.api.API;
import java.net.URI;
import java.time.Instant;
import java.util.List;
import static java.util.Collections.unmodifiableList;
import static java.util.Objects.requireNonNull;
@API(status = API.Status.STABLE)
public final class SnippetsSuggestedEvent extends TimeStampedEvent {
private final URI uri;
private final int scenarioLine;
private final int stepLine;
private final List snippets;
public SnippetsSuggestedEvent(Instant timeInstant, URI uri, int scenarioLine, int stepLine, List snippets) {
super(timeInstant);
this.uri = requireNonNull(uri);
this.scenarioLine = scenarioLine;
this.stepLine = stepLine;
this.snippets = unmodifiableList(requireNonNull(snippets));
}
public URI getUri() {
return uri;
}
public int getStepLine() {
return stepLine;
}
public int getScenarioLine() {
return scenarioLine;
}
public List getSnippets() {
return snippets;
}
}