org.fulib.scenarios.ast.sentence.TakeSentence Maven / Gradle / Ivy
Show all versions of fulibScenarios Show documentation
// Generated by GenTreeSrc v0.10.2
// DO NOT EDIT - CHANGES WILL BE LOST ON RE-GENERATE
package org.fulib.scenarios.ast.sentence;
import org.fulib.scenarios.ast.Node;
import org.fulib.scenarios.ast.Positioned;
import org.fulib.scenarios.ast.decl.Name;
import org.fulib.scenarios.ast.expr.Expr;
public interface TakeSentence extends ActorSentence
{
// =============== Static Methods ===============
static TakeSentence of(Name actor, Name varName, Expr example, Expr collection, Sentence body) { return new Impl(actor, varName, example, collection, body); }
// =============== Properties ===============
Name getActor();
void setActor(Name actor);
Name getVarName();
void setVarName(Name varName);
Expr getExample();
void setExample(Expr example);
Expr getCollection();
void setCollection(Expr collection);
Sentence getBody();
void setBody(Sentence body);
// =============== Methods ===============
default R accept(TakeSentence.Visitor
visitor, P par) { return visitor.visit(this, par); }
@Override default
R accept(ActorSentence.Visitor
visitor, P par) { return visitor.visit(this, par); }
@Override default
R accept(Sentence.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 TakeSentence
{
// =============== Fields ===============
private Name actor;
private Name varName;
private Expr example;
private Expr collection;
private Sentence body;
// =============== Constructors ===============
public Impl() {}
public Impl(Name actor, Name varName, Expr example, Expr collection, Sentence body)
{
this.actor = actor;
this.varName = varName;
this.example = example;
this.collection = collection;
this.body = body;
}
// =============== Properties ===============
@Override public Name getActor() { return this.actor; }
@Override public void setActor(Name actor) { this.actor = actor; }
@Override public Name getVarName() { return this.varName; }
@Override public void setVarName(Name varName) { this.varName = varName; }
@Override public Expr getExample() { return this.example; }
@Override public void setExample(Expr example) { this.example = example; }
@Override public Expr getCollection() { return this.collection; }
@Override public void setCollection(Expr collection) { this.collection = collection; }
@Override public Sentence getBody() { return this.body; }
@Override public void setBody(Sentence body) { this.body = body; }
}
interface Visitor
{
// =============== Methods ===============
default R visit(TakeSentence takeSentence, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + takeSentence.getClass().getName() + ")"); }
}
}