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

org.snapscript.core.ModuleScope Maven / Gradle / Ivy

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

public class ModuleScope implements Scope {
   
   private final Module module;
   private final State state;
   
   public ModuleScope(Module module) {
      this.state = new MapState(null);
      this.module = module;
   }
   
   @Override
   public Scope getInner() {
      return new CompoundScope(null, this, this);
   } 
   
   @Override
   public Scope getOuter() {
      return this;
   }

   @Override
   public State getState() {
      return state;
   }
   
   @Override
   public Model getModel() {
      return null;
   }
   
   @Override
   public Type getHandle() {
      return null;
   }
   
   @Override
   public Type getType() {
      return null;
   }  

   @Override
   public Module getModule() {
      return module;
   }
   
   @Override
   public String toString() {
      return String.valueOf(state);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy