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

org.snapscript.core.scope.instance.SuperExtractor Maven / Gradle / Ivy

package org.snapscript.core.scope.instance;

import java.util.List;

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

public class SuperExtractor {
   
   public SuperExtractor() {
      super();
   }
   
   public Type extractor(Type type) {
      List types = type.getTypes();
      Scope scope = type.getScope();
      
      for(Constraint base : types) {
         return base.getType(scope);
      }
      return null;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy