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

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

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

import org.snapscript.core.Evaluation;
import org.snapscript.core.scope.Scope;

public class StaticField extends StaticBlock {
   
   private final Evaluation evaluation;
   
   public StaticField(Evaluation evaluation){
      this.evaluation = evaluation;
   }
   
   @Override
   protected void define(Scope scope) throws Exception {
      evaluation.define(scope);
   }
   
   @Override
   protected void compile(Scope scope) throws Exception {
      evaluation.compile(scope, null);
   }

   @Override
   protected void allocate(Scope scope) throws Exception {
      evaluation.evaluate(scope, null);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy