1 package org.simantics.scl.compiler.environment;
3 import java.util.function.Consumer;
5 import org.simantics.scl.compiler.elaboration.modules.SCLValue;
6 import org.simantics.scl.compiler.elaboration.modules.TypeClass;
7 import org.simantics.scl.compiler.elaboration.modules.TypeConstructor;
8 import org.simantics.scl.compiler.elaboration.relations.SCLEntityType;
9 import org.simantics.scl.compiler.elaboration.relations.SCLRelation;
10 import org.simantics.scl.compiler.elaboration.rules.MappingRelation;
11 import org.simantics.scl.compiler.elaboration.rules.TransformationRule;
12 import org.simantics.scl.compiler.environment.filter.NamespaceFilter;
13 import org.simantics.scl.compiler.internal.codegen.effects.EffectConstructor;
14 import org.simantics.scl.compiler.types.TCon;
16 import gnu.trove.procedure.TObjectProcedure;
18 public enum EmptyNamespace implements Namespace {
22 public Namespace getNamespace(String name) {
27 public SCLValue getValue(String name) throws AmbiguousNameException {
32 public SCLRelation getRelation(String name) throws AmbiguousNameException {
37 public SCLEntityType getEntityType(String name)
38 throws AmbiguousNameException {
43 public TypeConstructor getTypeDescriptor(String name) throws AmbiguousNameException {
48 public EffectConstructor getEffectConstructor(String name)
49 throws AmbiguousNameException {
54 public TypeClass getTypeClass(String name) throws AmbiguousNameException {
59 public MappingRelation getMappingRelation(String name)
60 throws AmbiguousNameException {
65 public TransformationRule getRule(String name) throws AmbiguousNameException {
70 public void findValuesForPrefix(String prefix, NamespaceFilter filter, TObjectProcedure<SCLValue> proc) {
74 public void findTypesForPrefix(String prefix, NamespaceFilter filter, Consumer<TCon> consumer) {