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

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

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


public interface ResolvedName extends Name
{
	// =============== Static Methods ===============
	static ResolvedName of(Decl decl) { return new Impl(decl); }
	// =============== Properties ===============
	default String getValue() { return ResolvedNameDelegate.getValue(this); }
	Decl getDecl();
	void setDecl(Decl decl);
	// =============== Methods ===============
	default  R accept(ResolvedName.Visitor visitor, P par) { return visitor.visit(this, par); }
	@Override default  R accept(Name.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 ResolvedName
	{
		// =============== Fields ===============
		private Decl decl;
		// =============== Constructors ===============
		public Impl() {}
		public Impl(Decl decl)
		{
			this.decl = decl;
		}
		// =============== Properties ===============
		@Override public Decl getDecl() { return this.decl; }
		@Override public void setDecl(Decl decl) { this.decl = decl; }
	}
	interface Visitor
	{
		// =============== Methods ===============
		default R visit(ResolvedName resolvedName, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + resolvedName.getClass().getName() + ")"); }
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy