Lines Matching defs:Variable

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;
75 theEnvironment.put(Variable.valueOf(environ[i-1]),
96 ((Map<Variable,Value>)(theEnvironment.clone()));
101 return new StringEnvironment(new HashMap<Variable,Value>(capacity));
153 private static class Variable
154 extends ExternalData implements Comparable<Variable>
156 protected Variable(String str, byte[] bytes) {
160 public static Variable valueOfQueryOnly(Object str) {
164 public static Variable valueOfQueryOnly(String str) {
165 return new Variable(str, str.getBytes());
168 public static Variable valueOf(String str) {
173 public static Variable valueOf(byte[] bytes) {
174 return new Variable(new String(bytes), bytes);
177 public int compareTo(Variable variable) {
182 return o instanceof Variable && super.equals(o);
223 private Map<Variable,Value> m;
227 public StringEnvironment(Map<Variable,Value> m) {this.m = m;}
232 return m.containsKey(Variable.valueOfQueryOnly(key));
238 return toString(m.get(Variable.valueOfQueryOnly(key)));
241 return toString(m.put(Variable.valueOf(key),
245 return toString(m.remove(Variable.valueOfQueryOnly(key)));
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;}
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>() {
341 public Variable getKey() {
342 return Variable.valueOfQueryOnly(((Map.Entry)o).getKey());
391 private final Set<Variable> s;
392 public StringKeySet(Set<Variable> s) {this.s = s;}
398 Iterator<Variable> i = s.iterator();
405 return s.contains(Variable.valueOfQueryOnly(o));
408 return s.remove(Variable.valueOfQueryOnly(o));