@Test public void testClear () { String STRUCTURE_NAME = "structureName"; String FIELD_NAME = "fieldName"; Scope parentScope = new ScopeImpl (null); Symbol structure = parentScope.createStructure (STRUCTURE_NAME); structure.setValue (STRUCTURE_NAME + "." + FIELD_NAME, VALUE1); Parameter parameter = new Parameter (PARAMETER_NAME, new ScopeImpl (parentScope), STRUCTURE_NAME); assertEquals (VALUE1, parameter.getValue (STRUCTURE_NAME + "." + FIELD_NAME)); parameter.clear (STRUCTURE_NAME); try { parameter.getValue (STRUCTURE_NAME + "." + FIELD_NAME); fail ("no exception"); } catch (ExecutionException ee) { } }
@Override public void clear (String[] names) { mScope.getParent ().get (mValue).clear (names); }
Parameter extends SymbolImpl { @Override public void clear (String[] names) { mScope.getParent ().get (mValue).clear (names); } }
Parameter extends SymbolImpl { @Override public void clear (String[] names) { mScope.getParent ().get (mValue).clear (names); } Parameter(String name, Scope scope, String value); }
Parameter extends SymbolImpl { @Override public void clear (String[] names) { mScope.getParent ().get (mValue).clear (names); } Parameter(String name, Scope scope, String value); @Override String getValue(String name); @Override void setValue(String name, String value); @Override void clear(String[] names); }
Parameter extends SymbolImpl { @Override public void clear (String[] names) { mScope.getParent ().get (mValue).clear (names); } Parameter(String name, Scope scope, String value); @Override String getValue(String name); @Override void setValue(String name, String value); @Override void clear(String[] names);  }