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

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

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

import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.snapscript.core.annotation.Annotation;
import org.snapscript.core.function.Function;
import org.snapscript.core.link.ImportManager;
import org.snapscript.core.property.Property;

public class EmptyModule implements Module {

   private final List properties;
   private final List functions;
   private final Context context;
   private final Scope scope;
   
   public EmptyModule(Context context) {
      this.properties = new ArrayList();
      this.functions = new ArrayList();
      this.scope = new ModelScope(null, this);
      this.context = context;
   }

   @Override
   public Scope getScope() {
      return scope;
   }

   @Override
   public Context getContext() {
      return context;
   }

   @Override
   public ImportManager getManager() {
      return null;
   }

   @Override
   public Type getType(Class type) {
      return null;
   }

   @Override
   public Type getType(String name) {
      return null;
   }

   @Override
   public Type addType(String name, Category category) {
      return null;
   }

   @Override
   public Module getModule(String module) {
      return null;
   }

   @Override
   public InputStream getResource(String path) {
      return null;
   }

   @Override
   public List getAnnotations() {
      return Collections.emptyList();
   }
   
   @Override
   public List getProperties() {
      return properties;
   }

   @Override
   public List getFunctions() {
      return functions;
   }

   @Override
   public List getTypes() {
      return Collections.emptyList();
   }

   @Override
   public String getName() {
      return null;
   }

   @Override
   public Path getPath() {
      return null;
   }

   @Override
   public int getOrder() {
      return 0;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy