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

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

import java.util.List;
import org.fulib.scenarios.ast.decl.Name;
import org.fulib.scenarios.ast.type.Type;


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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy