
org.fulib.scenarios.ast.decl.UnresolvedName 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;
public interface UnresolvedName extends Name
{
// =============== Static Methods ===============
static UnresolvedName of(String value, String text) { return new Impl(value, text); }
// =============== Properties ===============
String getValue();
void setValue(String value);
String getText();
void setText(String text);
default Decl getDecl() { return UnresolvedNameDelegate.getDecl(this); }
// =============== Methods ===============
default R accept(UnresolvedName.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 UnresolvedName
{
// =============== Fields ===============
private String value;
private String text;
// =============== Constructors ===============
public Impl() {}
public Impl(String value, String text)
{
this.value = value;
this.text = text;
}
// =============== Properties ===============
@Override public String getValue() { return this.value; }
@Override public void setValue(String value) { this.value = value; }
@Override public String getText() { return this.text; }
@Override public void setText(String text) { this.text = text; }
}
interface Visitor
{
// =============== Methods ===============
default R visit(UnresolvedName unresolvedName, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + unresolvedName.getClass().getName() + ")"); }
}
}