org.fulib.scenarios.ast.decl.Decl Maven / Gradle / Ivy
// Generated by GenTreeSrc v0.10.2
// DO NOT EDIT - CHANGES WILL BE LOST ON RE-GENERATE
package org.fulib.scenarios.ast.decl;
import org.fulib.scenarios.ast.Node;
import org.fulib.scenarios.ast.Positioned;
import org.fulib.scenarios.ast.type.Type;
public interface Decl extends Positioned
{
// =============== Properties ===============
String getName();
void setName(String name);
Type getType();
void setType(Type type);
// =============== Methods ===============
default R accept(Decl.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 ===============
interface Visitor
extends ClassDecl.Visitor
, AttributeDecl.Visitor
, AssociationDecl.Visitor
, MethodDecl.Visitor
, ParameterDecl.Visitor
, VarDecl.Visitor
{
// =============== Methods ===============
default R visit(Decl decl, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + decl.getClass().getName() + ")"); }
@Override default R visit(ClassDecl classDecl, P par) { return this.visit((Decl) classDecl, par); }
@Override default R visit(AttributeDecl attributeDecl, P par) { return this.visit((Decl) attributeDecl, par); }
@Override default R visit(AssociationDecl associationDecl, P par) { return this.visit((Decl) associationDecl, par); }
@Override default R visit(MethodDecl methodDecl, P par) { return this.visit((Decl) methodDecl, par); }
@Override default R visit(ParameterDecl parameterDecl, P par) { return this.visit((Decl) parameterDecl, par); }
@Override default R visit(VarDecl varDecl, P par) { return this.visit((Decl) varDecl, par); }
}
}