gw.lang.reflect.EmptyBindings Maven / Gradle / Ivy
package gw.lang.reflect;
import javax.script.Bindings;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
/**
*/
public class EmptyBindings implements Bindings
{
private static final Bindings INSTANCE = new EmptyBindings();
public static Bindings instance() {
return INSTANCE;
}
private EmptyBindings()
{
}
@Override
public Object put( String name, Object value )
{
throw new UnsupportedOperationException();
}
@Override
public void putAll( Map extends String, ? extends Object> toMerge )
{
throw new UnsupportedOperationException();
}
@Override
public void clear()
{
throw new UnsupportedOperationException();
}
@Override
public Set keySet()
{
throw new UnsupportedOperationException();
}
@Override
public Collection