
org.snapscript.core.EmptyModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap Show documentation
Show all versions of snap Show documentation
Dynamic scripting for the JVM
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;
public class EmptyModule implements Module {
private final List functions;
private final Context context;
private final Scope scope;
public EmptyModule(Context context) {
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 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 - 2025 Weber Informatics LLC | Privacy Policy