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

org.fulib.scenarios.ast.expr.ErrorExpr 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;

import org.fulib.scenarios.ast.Node;
import org.fulib.scenarios.ast.Positioned;
import org.fulib.scenarios.ast.type.Type;


public interface ErrorExpr extends Expr
{
	// =============== Static Methods ===============
	static ErrorExpr of(Type type) { return new Impl(type); }
	// =============== Properties ===============
	Type getType();
	void setType(Type type);
	// =============== Methods ===============
	default  R accept(ErrorExpr.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 ErrorExpr
	{
		// =============== Fields ===============
		private Type type;
		// =============== Constructors ===============
		public Impl() {}
		public Impl(Type type)
		{
			this.type = type;
		}
		// =============== Properties ===============
		@Override public Type getType() { return this.type; }
		@Override public void setType(Type type) { this.type = type; }
	}
	interface Visitor
	{
		// =============== Methods ===============
		default R visit(ErrorExpr errorExpr, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + errorExpr.getClass().getName() + ")"); }
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy