Lines Matching defs:Value

40  * Internally, we define the types Variable and Value that exhibit
42 * environment then looks like a Map<Variable,Value>. But we don't
63 private static final HashMap<Variable,Value> theEnvironment;
76 Value.valueOf(environ[i]));
96 ((Map<Variable,Value>)(theEnvironment.clone()));
101 return new StringEnvironment(new HashMap<Variable,Value>(capacity));
186 private static class Value
187 extends ExternalData implements Comparable<Value>
189 protected Value(String str, byte[] bytes) {
193 public static Value valueOfQueryOnly(Object str) {
197 public static Value valueOfQueryOnly(String str) {
198 return new Value(str, str.getBytes());
201 public static Value valueOf(String str) {
206 public static Value valueOf(byte[] bytes) {
207 return new Value(new String(bytes), bytes);
210 public int compareTo(Value value) {
215 return o instanceof Value && super.equals(o);
223 private Map<Variable,Value> m;
224 private static String toString(Value v) {
227 public StringEnvironment(Map<Variable,Value> m) {this.m = m;}
235 return m.containsValue(Value.valueOfQueryOnly(value));
242 Value.valueOf(value)));
271 for (Map.Entry<Variable,Value> entry : m.entrySet()) {
279 for (Map.Entry<Variable,Value> entry : m.entrySet()) {
304 private final Map.Entry<Variable,Value> e;
305 public StringEntry(Map.Entry<Variable,Value> e) {this.e = e;}
309 return e.setValue(Value.valueOf(newValue)).toString();
322 private final Set<Map.Entry<Variable,Value>> s;
323 public StringEntrySet(Set<Map.Entry<Variable,Value>> s) {this.s = s;}
329 Iterator<Map.Entry<Variable,Value>> i = s.iterator();
337 private static Map.Entry<Variable,Value> vvEntry(final Object o) {
340 return new Map.Entry<Variable,Value>() {
344 public Value getValue() {
345 return Value.valueOfQueryOnly(((Map.Entry)o).getValue());
347 public Value setValue(Value value) {
364 private final Collection<Value> c;
365 public StringValues(Collection<Value> c) {this.c = c;}
371 Iterator<Value> i = c.iterator();
378 return c.contains(Value.valueOfQueryOnly(o));
381 return c.remove(Value.valueOfQueryOnly(o));