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

org.snapscript.core.attribute.StaticAttributeResult Maven / Gradle / Ivy

package org.snapscript.core.attribute;

import org.snapscript.core.constraint.Constraint;
import org.snapscript.core.scope.Scope;
import org.snapscript.core.type.Type;

public class StaticAttributeResult implements AttributeResult {
   
   private final Attribute attribute;

   public StaticAttributeResult(Attribute attribute) {
      this.attribute = attribute;
   }

   @Override
   public Constraint getConstraint(Scope scope, Constraint left, Type... types) throws Exception {
      return attribute.getConstraint();
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy