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

org.fulib.scenarios.ast.Scenario Maven / Gradle / Ivy

The newest version!
// Generated by GenTreeSrc v0.10.2
// DO NOT EDIT - CHANGES WILL BE LOST ON RE-GENERATE

package org.fulib.scenarios.ast;

import org.fulib.scenarios.ast.decl.MethodDecl;
import org.fulib.scenarios.ast.sentence.SentenceList;


public interface Scenario extends Positioned
{
	// =============== Static Methods ===============
	static Scenario of(ScenarioFile file, String name, SentenceList body, MethodDecl methodDecl) { return new Impl(file, name, body, methodDecl); }
	// =============== Properties ===============
	ScenarioFile getFile();
	void setFile(ScenarioFile file);
	String getName();
	void setName(String name);
	SentenceList getBody();
	void setBody(SentenceList body);
	MethodDecl getMethodDecl();
	void setMethodDecl(MethodDecl methodDecl);
	// =============== Methods ===============
	default  R accept(Scenario.Visitor visitor, P par) { return visitor.visit(this, par); }
	@Override default  R accept(Positioned.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 extends Positioned.Impl implements Scenario
	{
		// =============== Fields ===============
		private ScenarioFile file;
		private String name;
		private SentenceList body;
		private MethodDecl methodDecl;
		// =============== Constructors ===============
		public Impl() {}
		public Impl(ScenarioFile file, String name, SentenceList body, MethodDecl methodDecl)
		{
			this.file = file;
			this.name = name;
			this.body = body;
			this.methodDecl = methodDecl;
		}
		// =============== Properties ===============
		@Override public ScenarioFile getFile() { return this.file; }
		@Override public void setFile(ScenarioFile file) { this.file = file; }
		@Override public String getName() { return this.name; }
		@Override public void setName(String name) { this.name = name; }
		@Override public SentenceList getBody() { return this.body; }
		@Override public void setBody(SentenceList body) { this.body = body; }
		@Override public MethodDecl getMethodDecl() { return this.methodDecl; }
		@Override public void setMethodDecl(MethodDecl methodDecl) { this.methodDecl = methodDecl; }
	}
	interface Visitor
	{
		// =============== Methods ===============
		default R visit(Scenario scenario, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + scenario.getClass().getName() + ")"); }
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy