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

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

import org.fulib.scenarios.ast.Node;
import org.fulib.scenarios.ast.Positioned;
import org.fulib.scenarios.ast.decl.Name;
import org.fulib.scenarios.ast.expr.Expr;


public interface AttributeAccess extends Expr
{
	// =============== Static Methods ===============
	static AttributeAccess of(Name name, Expr receiver) { return new Impl(name, receiver); }
	// =============== Properties ===============
	Name getName();
	void setName(Name name);
	Expr getReceiver();
	void setReceiver(Expr receiver);
	// =============== Methods ===============
	default  R accept(AttributeAccess.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 AttributeAccess
	{
		// =============== Fields ===============
		private Name name;
		private Expr receiver;
		// =============== Constructors ===============
		public Impl() {}
		public Impl(Name name, Expr receiver)
		{
			this.name = name;
			this.receiver = receiver;
		}
		// =============== Properties ===============
		@Override public Name getName() { return this.name; }
		@Override public void setName(Name name) { this.name = name; }
		@Override public Expr getReceiver() { return this.receiver; }
		@Override public void setReceiver(Expr receiver) { this.receiver = receiver; }
	}
	interface Visitor
	{
		// =============== Methods ===============
		default R visit(AttributeAccess attributeAccess, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + attributeAccess.getClass().getName() + ")"); }
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy