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

org.fulib.scenarios.ast.pattern.AttributePredicateConstraint Maven / Gradle / Ivy

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

package org.fulib.scenarios.ast.pattern;

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.conditional.PredicateOperator;


public interface AttributePredicateConstraint extends AttributeConstraint
{
	// =============== Static Methods ===============
	static AttributePredicateConstraint of(Name attribute, PredicateOperator predicate) { return new Impl(attribute, predicate); }
	// =============== Properties ===============
	Name getAttribute();
	void setAttribute(Name attribute);
	PredicateOperator getPredicate();
	void setPredicate(PredicateOperator predicate);
	// =============== Methods ===============
	default  R accept(AttributePredicateConstraint.Visitor visitor, P par) { return visitor.visit(this, par); }
	@Override default  R accept(AttributeConstraint.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 AttributeConstraint.Impl implements AttributePredicateConstraint
	{
		// =============== Fields ===============
		private Name attribute;
		private PredicateOperator predicate;
		// =============== Constructors ===============
		public Impl() {}
		public Impl(Name attribute, PredicateOperator predicate)
		{
			this.attribute = attribute;
			this.predicate = predicate;
		}
		// =============== Properties ===============
		@Override public Name getAttribute() { return this.attribute; }
		@Override public void setAttribute(Name attribute) { this.attribute = attribute; }
		@Override public PredicateOperator getPredicate() { return this.predicate; }
		@Override public void setPredicate(PredicateOperator predicate) { this.predicate = predicate; }
	}
	interface Visitor
	{
		// =============== Methods ===============
		default R visit(AttributePredicateConstraint attributePredicateConstraint, P par) { throw new UnsupportedOperationException(this.getClass().getName() + ".visit(" + attributePredicateConstraint.getClass().getName() + ")"); }
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy