
org.fulib.scenarios.ast.decl.Name 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 Name extends Positioned
{
// =============== Properties ===============
String getValue();
Decl getDecl();
// =============== Methods ===============
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 ===============
interface Visitor
extends UnresolvedName.Visitor
, ResolvedName.Visitor
{
// =============== Methods ===============
default R visit(Name name, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + name.getClass().getName() + ")"); }
@Override default R visit(UnresolvedName unresolvedName, P par) { return this.visit((Name) unresolvedName, par); }
@Override default R visit(ResolvedName resolvedName, P par) { return this.visit((Name) resolvedName, par); }
}
}