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

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

import java.util.List;
import org.fulib.scenarios.ast.Node;
import org.fulib.scenarios.ast.Positioned;


public interface AndConstraint extends Constraint
{
	// =============== Static Methods ===============
	static AndConstraint of(List constraints) { return new Impl(constraints); }
	// =============== Properties ===============
	List getConstraints();
	void setConstraints(List constraints);
	// =============== Methods ===============
	default  R accept(AndConstraint.Visitor visitor, P par) { return visitor.visit(this, par); }
	@Override default  R accept(Constraint.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 Constraint.Impl implements AndConstraint
	{
		// =============== Fields ===============
		private List constraints;
		// =============== Constructors ===============
		public Impl() {}
		public Impl(List constraints)
		{
			this.constraints = constraints;
		}
		// =============== Properties ===============
		@Override public List getConstraints() { return this.constraints; }
		@Override public void setConstraints(List constraints) { this.constraints = constraints; }
	}
	interface Visitor
	{
		// =============== Methods ===============
		default R visit(AndConstraint andConstraint, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + andConstraint.getClass().getName() + ")"); }
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy