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

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

There is a newer version: 1.4.6
Show newest version
package org.snapscript.tree.define;

import org.snapscript.core.Result;
import org.snapscript.core.Scope;
import org.snapscript.core.Statement;
import org.snapscript.core.Type;
import org.snapscript.core.TypeFactory;

public class StaticBody extends Statement {

   private final TypeFactory factory;
   private final Type type;
   
   public StaticBody(TypeFactory factory, Type type) {
      this.factory = factory;
      this.type = type;
   }

   @Override
   public Result compile(Scope scope) throws Exception {
      return factory.compile(scope, type);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy