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

org.snapscript.tree.define.StaticConstantFactory Maven / Gradle / Ivy

package org.snapscript.tree.define;

import org.snapscript.core.Result;
import org.snapscript.core.ResultType;
import org.snapscript.core.Type;

public class StaticConstantFactory extends StaticFactory {
   
   private final StaticConstantCollector collector;
   
   public StaticConstantFactory() {
      this.collector = new StaticConstantCollector();
   }

   @Override
   protected Result compile(Type type) throws Exception { 
      collector.collect(type);
      return ResultType.getNormal();
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy