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