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

org.fulib.scenarios.ast.sentence.SectionSentence Maven / Gradle / Ivy

// Generated by GenTreeSrc v0.10.2
// DO NOT EDIT - CHANGES WILL BE LOST ON RE-GENERATE

package org.fulib.scenarios.ast.sentence;

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


public interface SectionSentence extends Sentence
{
	// =============== Static Methods ===============
	static SectionSentence of(String text, CommentLevel level) { return new Impl(text, level); }
	// =============== Properties ===============
	String getText();
	void setText(String text);
	CommentLevel getLevel();
	void setLevel(CommentLevel level);
	// =============== Methods ===============
	default  R accept(SectionSentence.Visitor visitor, P par) { return visitor.visit(this, par); }
	@Override default  R accept(Sentence.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 SectionSentence
	{
		// =============== Fields ===============
		private String text;
		private CommentLevel level;
		// =============== Constructors ===============
		public Impl() {}
		public Impl(String text, CommentLevel level)
		{
			this.text = text;
			this.level = level;
		}
		// =============== Properties ===============
		@Override public String getText() { return this.text; }
		@Override public void setText(String text) { this.text = text; }
		@Override public CommentLevel getLevel() { return this.level; }
		@Override public void setLevel(CommentLevel level) { this.level = level; }
	}
	interface Visitor
	{
		// =============== Methods ===============
		default R visit(SectionSentence sectionSentence, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + sectionSentence.getClass().getName() + ")"); }
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy