@Test public void testGetLocalValues() { final String varName = "foo"; final String varValue = "clearLocal"; EnvFunction.setLocalValue(varName, varValue); Map<String, Object> localValues = EnvFunction.getLocalValues(); assertEquals(localValues, Collections.singletonMap(varName.toUpperCase(), varValue)); try { localValues.put(varName, "fooBar"); fail("Should have been read only"); } catch (UnsupportedOperationException e) { } }
public static Map<String, Object> getLocalValues() { return Collections.unmodifiableMap(localLookup.getTable()); }
EnvFunction extends FunctionExpressionImpl { public static Map<String, Object> getLocalValues() { return Collections.unmodifiableMap(localLookup.getTable()); } }
EnvFunction extends FunctionExpressionImpl { public static Map<String, Object> getLocalValues() { return Collections.unmodifiableMap(localLookup.getTable()); } EnvFunction(); }
EnvFunction extends FunctionExpressionImpl { public static Map<String, Object> getLocalValues() { return Collections.unmodifiableMap(localLookup.getTable()); } EnvFunction(); static void setLocalValues(Map<String, Object> values); static Map<String, Object> getLocalValues(); static void clearLocalValues(); static void setGlobalValues(Map<String, Object> values); static void clearGlobalValues(); static void setLocalValue(String name, Object value); static void removeLocalValue(String name); static void setGlobalValue(String name, Object value); static void removeGlobalValue(String name); @Override Object evaluate(Object feature); @Override void setParameters(List params); @Override void setFallbackValue(Literal fallback); }
EnvFunction extends FunctionExpressionImpl { public static Map<String, Object> getLocalValues() { return Collections.unmodifiableMap(localLookup.getTable()); } EnvFunction(); static void setLocalValues(Map<String, Object> values); static Map<String, Object> getLocalValues(); static void clearLocalValues(); static void setGlobalValues(Map<String, Object> values); static void clearGlobalValues(); static void setLocalValue(String name, Object value); static void removeLocalValue(String name); static void setGlobalValue(String name, Object value); static void removeGlobalValue(String name); @Override Object evaluate(Object feature); @Override void setParameters(List params); @Override void setFallbackValue(Literal fallback); static FunctionName NAME; }