org.fulib.scenarios.ast.expr.access.ExampleAccess 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.expr.access;
import org.fulib.scenarios.ast.Node;
import org.fulib.scenarios.ast.Positioned;
import org.fulib.scenarios.ast.expr.Expr;
public interface ExampleAccess extends Expr
{
// =============== Static Methods ===============
static ExampleAccess of(Expr value, Expr expr) { return new Impl(value, expr); }
// =============== Properties ===============
Expr getValue();
void setValue(Expr value);
Expr getExpr();
void setExpr(Expr expr);
// =============== Methods ===============
default R accept(ExampleAccess.Visitor
visitor, P par) { return visitor.visit(this, par); }
@Override default
R accept(Expr.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 ExampleAccess
{
// =============== Fields ===============
private Expr value;
private Expr expr;
// =============== Constructors ===============
public Impl() {}
public Impl(Expr value, Expr expr)
{
this.value = value;
this.expr = expr;
}
// =============== Properties ===============
@Override public Expr getValue() { return this.value; }
@Override public void setValue(Expr value) { this.value = value; }
@Override public Expr getExpr() { return this.expr; }
@Override public void setExpr(Expr expr) { this.expr = expr; }
}
interface Visitor
{
// =============== Methods ===============
default R visit(ExampleAccess exampleAccess, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + exampleAccess.getClass().getName() + ")"); }
}
}