org.fulib.scenarios.ast.ScenarioFile Maven / Gradle / Ivy
// Generated by GenTreeSrc v0.10.2
// DO NOT EDIT - CHANGES WILL BE LOST ON RE-GENERATE
package org.fulib.scenarios.ast;
import java.util.List;
import org.fulib.scenarios.ast.decl.ClassDecl;
import org.fulib.scenarios.diagnostic.Marker;
public interface ScenarioFile extends Node
{
// =============== Static Methods ===============
static ScenarioFile of(ScenarioGroup group, String name, List scenarios, ClassDecl classDecl) { return new Impl(group, name, scenarios, classDecl); }
// =============== Properties ===============
ScenarioGroup getGroup();
void setGroup(ScenarioGroup group);
String getName();
void setName(String name);
List getScenarios();
void setScenarios(List scenarios);
ClassDecl getClassDecl();
void setClassDecl(ClassDecl classDecl);
boolean getExternal();
void setExternal(boolean external);
List getMarkers();
void setMarkers(List markers);
// =============== Methods ===============
default R accept(ScenarioFile.Visitor
visitor, P par) { return visitor.visit(this, par); }
@Override default
R accept(Node.Visitor
visitor, P par) { return visitor.visit(this, par); }
// =============== Classes ===============
class Impl implements ScenarioFile
{
// =============== Fields ===============
private ScenarioGroup group;
private String name;
private List scenarios;
private ClassDecl classDecl;
private boolean external;
private List markers;
// =============== Constructors ===============
public Impl() {}
public Impl(ScenarioGroup group, String name, List scenarios, ClassDecl classDecl)
{
this.group = group;
this.name = name;
this.scenarios = scenarios;
this.classDecl = classDecl;
}
// =============== Properties ===============
@Override public ScenarioGroup getGroup() { return this.group; }
@Override public void setGroup(ScenarioGroup group) { this.group = group; }
@Override public String getName() { return this.name; }
@Override public void setName(String name) { this.name = name; }
@Override public List getScenarios() { return this.scenarios; }
@Override public void setScenarios(List scenarios) { this.scenarios = scenarios; }
@Override public ClassDecl getClassDecl() { return this.classDecl; }
@Override public void setClassDecl(ClassDecl classDecl) { this.classDecl = classDecl; }
@Override public boolean getExternal() { return this.external; }
@Override public void setExternal(boolean external) { this.external = external; }
@Override public List getMarkers() { return this.markers; }
@Override public void setMarkers(List markers) { this.markers = markers; }
}
interface Visitor
{
// =============== Methods ===============
default R visit(ScenarioFile scenarioFile, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + scenarioFile.getClass().getName() + ")"); }
}
}