All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fulib.scenarios.ast.expr.primary.DoubleLiteral Maven / Gradle / Ivy

The newest version!
// 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 DoubleLiteral extends PrimaryExpr
{
	// =============== Static Methods ===============
	static DoubleLiteral of(double value) { return new Impl(value); }
	// =============== Properties ===============
	double getValue();
	void setValue(double value);
	// =============== Methods ===============
	default  R accept(DoubleLiteral.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 DoubleLiteral
	{
		// =============== Fields ===============
		private double value;
		// =============== Constructors ===============
		public Impl() {}
		public Impl(double value)
		{
			this.value = value;
		}
		// =============== Properties ===============
		@Override public double getValue() { return this.value; }
		@Override public void setValue(double value) { this.value = value; }
	}
	interface Visitor
	{
		// =============== Methods ===============
		default R visit(DoubleLiteral doubleLiteral, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + doubleLiteral.getClass().getName() + ")"); }
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy