public boolean containsKey(Object k) { if (k instanceof Keyword) return containsKey(((Keyword) k).getName()); return getMap().containsKey(k); }
public boolean containsKey(Object k) { if(k instanceof Keyword) return containsKey(((Keyword) k).getName()); return getMap().containsKey(k); }
@Override public boolean containsKey(Object key) { return map.containsKey(key); }
public boolean contains(Object key){ return impl.containsKey(key); }
public boolean containsKey(Object key){ return def.keyslots.containsKey(key) || ext.containsKey(key); }
public boolean containsKey(Object key){ return def.keyslots.containsKey(key) || ext.containsKey(key); }
public boolean contains(Object key){ return impl.containsKey(key); }
public static boolean isSpecial(Object sym){ if(sym instanceof Symbol) { return qualifiedSpecials.containsKey(resolveSymbol((Symbol)sym)) || specials.containsKey(sym); } else { return false; } }
public static boolean isQualifiedSpecial(Object sym){ if(sym instanceof Symbol) { return qualifiedSpecials.containsKey(resolveSymbol((Symbol)sym)); } else { return false; } }
@Override public Expression substitute(IPersistentMap bindings) { if(bindings.containsKey(sym)) { return Constant.create(bindings.valAt(sym)); } return this; }
public void unmap(Symbol sym) { if(sym.ns != null) { throw new IllegalArgumentException("Can't unintern namespace-qualified symbol"); } IPersistentMap map = getMappings(); while(map.containsKey(sym)) { IPersistentMap newMap = map.without(sym); mappings.compareAndSet(map, newMap); map = getMappings(); } }
public void unmap(Symbol sym) { if(sym.ns != null) { throw new IllegalArgumentException("Can't unintern namespace-qualified symbol"); } IPersistentMap map = getMappings(); while(map.containsKey(sym)) { IPersistentMap newMap = map.without(sym); mappings.compareAndSet(map, newMap); map = getMappings(); } }
static public Object read(PushbackReader r, IPersistentMap opts){ return read(r,!opts.containsKey(EOF),opts.valAt(EOF),false,opts); }
public void removeAlias(Symbol alias) { IPersistentMap map = getAliases(); while(map.containsKey(alias)) { IPersistentMap newMap = map.without(alias); aliases.compareAndSet(map, newMap); map = getAliases(); } }
public void removeAlias(Symbol alias) { IPersistentMap map = getAliases(); while(map.containsKey(alias)) { IPersistentMap newMap = map.without(alias); aliases.compareAndSet(map, newMap); map = getAliases(); } }
public void addAlias(Symbol alias, Namespace ns){ if (alias == null || ns == null) throw new NullPointerException("Expecting Symbol + Namespace"); IPersistentMap map = getAliases(); while(!map.containsKey(alias)) { IPersistentMap newMap = map.assoc(alias, ns); aliases.compareAndSet(map, newMap); map = getAliases(); } // you can rebind an alias, but only to the initially-aliased namespace. if(!map.valAt(alias).equals(ns)) throw new IllegalStateException("Alias " + alias + " already exists in namespace " + name + ", aliasing " + map.valAt(alias)); }
public boolean containsKey(Object k) { if (k instanceof Keyword) return containsKey(((Keyword) k).getName()); return getMap().containsKey(k); }
public boolean containsKey(Object k) { if(k instanceof Keyword) return containsKey(((Keyword) k).getName()); return getMap().containsKey(k); }
public boolean containsKey(Object k) { if(k instanceof Keyword) return containsKey(((Keyword) k).getName()); return getMap().containsKey(k); }
private void emitUnboxedLocal(GeneratorAdapter gen, LocalBinding lb){ int argoff = isStatic?0:1; Class primc = lb.getPrimitiveType(); if(closes.containsKey(lb)) { gen.loadThis(); gen.getField(objtype, lb.name, Type.getType(primc)); } else if(lb.isArg) gen.loadArg(lb.idx-argoff); else gen.visitVarInsn(Type.getType(primc).getOpcode(Opcodes.ILOAD), lb.idx); }