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

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

import java.util.List;
import org.fulib.scenarios.ast.NamedExpr;
import org.fulib.scenarios.ast.Node;
import org.fulib.scenarios.ast.Positioned;
import org.fulib.scenarios.ast.expr.Expr;
import org.fulib.scenarios.ast.type.Type;


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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy