org.fulib.scenarios.ast.decl.ResolvedName 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.decl;
import org.fulib.scenarios.ast.Node;
import org.fulib.scenarios.ast.Positioned;
public interface ResolvedName extends Name
{
// =============== Static Methods ===============
static ResolvedName of(Decl decl) { return new Impl(decl); }
// =============== Properties ===============
default String getValue() { return ResolvedNameDelegate.getValue(this); }
Decl getDecl();
void setDecl(Decl decl);
// =============== Methods ===============
default R accept(ResolvedName.Visitor
visitor, P par) { return visitor.visit(this, par); }
@Override default
R accept(Name.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 ResolvedName
{
// =============== Fields ===============
private Decl decl;
// =============== Constructors ===============
public Impl() {}
public Impl(Decl decl)
{
this.decl = decl;
}
// =============== Properties ===============
@Override public Decl getDecl() { return this.decl; }
@Override public void setDecl(Decl decl) { this.decl = decl; }
}
interface Visitor
{
// =============== Methods ===============
default R visit(ResolvedName resolvedName, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + resolvedName.getClass().getName() + ")"); }
}
}