set a new local variable, on the highest block hierarchy.

@param key
name of the variable
@param value
value of the variable
@return true if at least one local block hierarchy exists else false
557166
public boolean setLocalVariable(Object key, Object value) {
		boolean success = false;

		if (working.size() > 0) {
			Map<Object, Object> map = working.get(working.size() - 1);
			map.put(key, value);
			success = true;
		}
		return success;
	}
257533
public Variable setLocalVariable(final String name, final Object value,
            final boolean strictJava) throws UtilEvalError {
        return this.setVariable(name, value, strictJava, false/* recurse */);
    }
352100
public boolean isLocalVariable(@Nullable final String variableName) {
    boolean result = false;
    if (variableName != null) {
      final String normalized = PreprocessorUtils.normalizeVariableName(variableName);
      result = this.localVarTable.containsKey(normalized);
    }
    return result;
  }
1183076
public void put(K[] key, V value) {
        Node child = root.get(key[0]);
        if (child == null) {
            child = new Node(key[0]);
            root.put(key[0], child);
        }
        child.addChild(key, value, 1);
    }
1251493
public void put(K key, V value) {
        checkNotNull(key, "Key cannot be null");
        checkNotNull(value, "Value cannot be null");

        Set<V> values = backingMap.get(key);
        if (values == null) {
            values = new HashSet<V>();
            backingMap.put(key, values);
        }
        values.add(value);
    }
292241
public static void setLatkeProperty(final String key, final String value) {
        if (null == key) {
            LOGGER.log(Level.WARN, "latke.props can not set null key");

            return;
        }
        if (null == value) {
            LOGGER.log(Level.WARN, "latke.props can not set null value");

            return;
        }

        latkeProps.setProperty(key, value);
    }
985374
@Override
  public void setProp(String key, Object value) {
    super.setProp(key, value);
    for (WorkUnit workUnit : this.workUnits) {
      workUnit.setProp(key, value);
    }
  }
195661
public boolean setNextKeyValue(Text key, Row value)
            throws IOException {
        if (!_rows.hasNext()) {
            Closeables.close(this, true);
            return false;
        }

        try {
            Map<String, Object> content = _rows.next();
            key.set(Coordinate.fromJson(content).toString());
            value.set(content);
            _rowsRead += 1;
        } catch (Exception e) {
            for (Throwable cause : Throwables.getCausalChain(e)) {
                Throwables.propagateIfInstanceOf(cause, IOException.class);
            }
            throw new IOException("Failed to read next row", e);
        }
        return true;
    }
1121080
public void push(final V value) throws IndexOutOfBoundsException {
        if (top + locals >= values.length) {
            throw new IndexOutOfBoundsException(
                    "Insufficient maximum stack size.");
        }
        values[top++ + locals] = value;
    }
195375
public T put(YamlNode key, boolean value) {
        return put(key, getNodeFactory().booleanNode(value));
    }
1280224
public void setVariable(String name, Object value) {
        if (variables == null)
            variables = new LinkedHashMap();
        variables.put(name, value);
    }
95865
public void append(int key, long value) {
        if (mSize != 0 && key <= mKeys[mSize - 1]) {
            put(key, value);
            return;
        }

        int pos = mSize;
        if (pos >= mKeys.length) {
            growKeyAndValueArrays(pos + 1);
        }

        mKeys[pos] = key;
        mValues[pos] = value;
        mSize = pos + 1;
    }
1151109
public static void setLocalProperty(final String key, final String value) {
        if (null == key) {
            LOGGER.log(Level.WARN, "local.props can not set null key");

            return;
        }
        if (null == value) {
            LOGGER.log(Level.WARN, "local.props can not set null value");

            return;
        }

        localProps.setProperty(key, value);
    }
882197
@Override
    public void set(String key, String value) {
    	if("dn".equals(key)) {
    		this.dn = value;
    	} else if (value != null
                && !value.isEmpty()
                && key != null
                && !key.isEmpty()) {
            addAttribute(new BasicAttribute(key, value, true));
        }
    }
996404
public StatementBuilder withBindVariableValue(String key, Value value) {
    queryBuilder.withBindVariableValue(key, value);
    return this;
  }
285392
public void setBlockVariable( String name, Object value )
        throws UtilEvalError
    {
        super.setVariable( name, value, false/*strict?*/, false );
    }
523079
public static void set(String key, Object value) {
    share.get().put(key, value);
  }