// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) space 
// Source File Name:   LocalEnvironment.java

package lt.monarch.function;

import java.util.Hashtable;

// Referenced classes of package lt.monarch.function:
//            Environment, Identifier

public class LocalEnvironment
    implements Environment
{

    public Identifier identifierWithName(String s)
    {
        Identifier identifier = (Identifier)localIds.get(s);
        return identifier == null ? env.identifierWithName(s) : identifier;
    }

    public LocalEnvironment(Environment environment, Identifier aidentifier[])
    {
        localIds = new Hashtable();
        for (int i = 0; i < aidentifier.length; i++)
            localIds.put(aidentifier[i].name(), aidentifier[i]);

        env = environment;
    }

    private Hashtable localIds;
    private Environment env;
}
