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

org.fulib.scenarios.ast.scope.DelegatingScope Maven / Gradle / Ivy

The newest version!
package org.fulib.scenarios.ast.scope;

import org.fulib.scenarios.ast.decl.Decl;
import org.fulib.scenarios.diagnostic.Marker;

import java.util.function.BiConsumer;
import java.util.function.Function;

public abstract class DelegatingScope implements Scope
{
   protected final Scope outer;

   public DelegatingScope(Scope outer)
   {
      this.outer = outer;
   }

   @Override
   public Decl resolve(String name)
   {
      return this.outer.resolve(name);
   }

   @Override
   public void list(BiConsumer consumer)
   {
      this.outer.list(consumer);
   }

   @Override
   public  T resolve(String name, Class type, Function create)
   {
      return this.outer.resolve(name, type, create);
   }

   @Override
   public void report(Marker marker)
   {
      this.outer.report(marker);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy