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

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

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


public interface CharLiteral extends PrimaryExpr
{
	// =============== Static Methods ===============
	static CharLiteral of(char value) { return new Impl(value); }
	// =============== Properties ===============
	char getValue();
	void setValue(char value);
	// =============== Methods ===============
	default  R accept(CharLiteral.Visitor visitor, P par) { return visitor.visit(this, par); }
	@Override default  R accept(PrimaryExpr.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 CharLiteral
	{
		// =============== Fields ===============
		private char value;
		// =============== Constructors ===============
		public Impl() {}
		public Impl(char value)
		{
			this.value = value;
		}
		// =============== Properties ===============
		@Override public char getValue() { return this.value; }
		@Override public void setValue(char value) { this.value = value; }
	}
	interface Visitor
	{
		// =============== Methods ===============
		default R visit(CharLiteral charLiteral, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + charLiteral.getClass().getName() + ")"); }
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy