org.fulib.scenarios.ast.sentence.RemoveSentence 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 RemoveSentence extends MutatingSentence
{
// =============== Static Methods ===============
static RemoveSentence of(Name actor, Expr source, Expr target) { return new Impl(actor, source, target); }
// =============== Properties ===============
Name getActor();
void setActor(Name actor);
Expr getSource();
void setSource(Expr source);
Expr getTarget();
void setTarget(Expr target);
// =============== Methods ===============
default R accept(RemoveSentence.Visitor
visitor, P par) { return visitor.visit(this, par); }
@Override default
R accept(MutatingSentence.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 RemoveSentence
{
// =============== Fields ===============
private Name actor;
private Expr source;
private Expr target;
// =============== Constructors ===============
public Impl() {}
public Impl(Name actor, Expr source, Expr target)
{
this.actor = actor;
this.source = source;
this.target = target;
}
// =============== Properties ===============
@Override public Name getActor() { return this.actor; }
@Override public void setActor(Name actor) { this.actor = actor; }
@Override public Expr getSource() { return this.source; }
@Override public void setSource(Expr source) { this.source = source; }
@Override public Expr getTarget() { return this.target; }
@Override public void setTarget(Expr target) { this.target = target; }
}
interface Visitor
{
// =============== Methods ===============
default R visit(RemoveSentence removeSentence, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + removeSentence.getClass().getName() + ")"); }
}
}