Lines Matching refs:name

56     protected abstract Object a_lookup(String name, Continuation cont)
58 protected abstract Object a_lookupLink(String name, Continuation cont)
65 protected abstract void a_bind(String name, Object obj, Continuation cont)
67 protected abstract void a_rebind(String name, Object obj, Continuation cont)
69 protected abstract void a_unbind(String name, Continuation cont)
71 protected abstract void a_destroySubcontext(String name, Continuation cont)
73 protected abstract Context a_createSubcontext(String name,
83 * head: the first component in this name
84 * tail: the rest of the unused name.
87 * which parses inputName using its own name syntax.
97 * Resolves the nns for 'name' when the named context is acting
101 * a_lookup(name, cont);
106 * a_lookup_nns(name, cont);
116 protected Object a_resolveIntermediate_nns(String name, Continuation cont)
119 final Object obj = a_lookup(name, cont);
129 cont.setContinueNNS(obj, name, this);
144 // Resolved name has trailing slash to indicate nns
146 resName.add(name);
170 // are invoked with a name that has a trailing slash.
180 // the same meaning as the same name without a trailing slash,
184 protected Object a_lookup_nns(String name, Continuation cont)
186 a_processJunction_nns(name, cont);
190 protected Object a_lookupLink_nns(String name, Continuation cont)
192 a_processJunction_nns(name, cont);
207 protected void a_bind_nns(String name, Object obj, Continuation cont)
209 a_processJunction_nns(name, cont);
212 protected void a_rebind_nns(String name, Object obj, Continuation cont)
214 a_processJunction_nns(name, cont);
217 protected void a_unbind_nns(String name, Continuation cont)
219 a_processJunction_nns(name, cont);
222 protected Context a_createSubcontext_nns(String name, Continuation cont)
224 a_processJunction_nns(name, cont);
228 protected void a_destroySubcontext_nns(String name, Continuation cont)
230 a_processJunction_nns(name, cont);
246 protected boolean isEmpty(String name) {
247 return name == null || name.equals("");
255 protected Object c_lookup(Name name, Continuation cont)
258 if (resolve_to_penultimate_context(name, cont)) {
259 ret = a_lookup(name.toString(), cont);
261 cont.setContinue(ret, name, this);
268 protected Object c_lookupLink(Name name, Continuation cont)
270 if (resolve_to_penultimate_context(name, cont)) {
271 return a_lookupLink(name.toString(), cont);
276 protected NamingEnumeration c_list(Name name,
278 if (resolve_to_context(name, cont)) {
284 protected NamingEnumeration c_listBindings(Name name,
286 if (resolve_to_context(name, cont)) {
292 protected void c_bind(Name name, Object obj, Continuation cont)
294 if (resolve_to_penultimate_context(name, cont))
295 a_bind(name.toString(), obj, cont);
298 protected void c_rebind(Name name, Object obj, Continuation cont)
300 if (resolve_to_penultimate_context(name, cont))
301 a_rebind(name.toString(), obj, cont);
304 protected void c_unbind(Name name, Continuation cont)
306 if (resolve_to_penultimate_context(name, cont))
307 a_unbind(name.toString(), cont);
310 protected void c_destroySubcontext(Name name, Continuation cont)
312 if (resolve_to_penultimate_context(name, cont))
313 a_destroySubcontext(name.toString(), cont);
316 protected Context c_createSubcontext(Name name,
318 if (resolve_to_penultimate_context(name, cont))
319 return a_createSubcontext(name.toString(), cont);
330 protected NameParser c_getNameParser(Name name,
332 if (resolve_to_context(name, cont))
346 protected Object c_resolveIntermediate_nns(Name name, Continuation cont)
350 if (resolve_to_penultimate_context_nns(name, cont)) {
351 ret = a_resolveIntermediate_nns(name.toString(), cont);
353 cont.setContinue(ret, name, this);
360 return super.c_resolveIntermediate_nns(name, cont);
366 protected Object c_lookup_nns(Name name, Continuation cont)
370 if (resolve_to_penultimate_context_nns(name, cont)) {
371 ret = a_lookup_nns(name.toString(), cont);
373 cont.setContinue(ret, name, this);
379 return super.c_lookup_nns(name, cont);
383 protected Object c_lookupLink_nns(Name name, Continuation cont)
387 resolve_to_nns_and_continue(name, cont);
391 return super.c_lookupLink_nns(name, cont);
395 protected NamingEnumeration c_list_nns(Name name,
398 resolve_to_nns_and_continue(name, cont);
402 return super.c_list_nns(name, cont);
406 protected NamingEnumeration c_listBindings_nns(Name name,
409 resolve_to_nns_and_continue(name, cont);
413 return super.c_list_nns(name, cont);
417 protected void c_bind_nns(Name name, Object obj, Continuation cont)
420 if (resolve_to_penultimate_context_nns(name, cont))
421 a_bind_nns(name.toString(), obj, cont);
424 super.c_bind_nns(name, obj, cont);
428 protected void c_rebind_nns(Name name, Object obj, Continuation cont)
431 if (resolve_to_penultimate_context_nns(name, cont))
432 a_rebind_nns(name.toString(), obj, cont);
435 super.c_rebind_nns(name, obj, cont);
439 protected void c_unbind_nns(Name name, Continuation cont)
442 if (resolve_to_penultimate_context_nns(name, cont))
443 a_unbind_nns(name.toString(), cont);
446 super.c_unbind_nns(name, cont);
450 protected Context c_createSubcontext_nns(Name name,
453 if (resolve_to_penultimate_context_nns(name, cont))
454 return a_createSubcontext_nns(name.toString(), cont);
459 return super.c_createSubcontext_nns(name, cont);
463 protected void c_destroySubcontext_nns(Name name, Continuation cont)
466 if (resolve_to_penultimate_context_nns(name, cont))
467 a_destroySubcontext_nns(name.toString(), cont);
470 super.c_destroySubcontext_nns(name, cont);
485 protected NameParser c_getNameParser_nns(Name name, Continuation cont)
488 resolve_to_nns_and_continue(name, cont);
492 return super.c_getNameParser_nns(name, cont);
501 * supports junctions. For example, when the a_bind_nns(name, newobj)
503 * object 'newobj' to the nns of 'name'. For context that supports
504 * junctions, 'name' names a junction and is pointing to the root
506 * This means that a_bind_nns() should first resolve 'name' and attempt to
507 * continue the operation in the context named by 'name'. (i.e. bind
508 * to the nns of the context named by 'name').
509 * If name is already empty, then throw NameNotFoundException because
512 protected void a_processJunction_nns(String name, Continuation cont)
514 if (name.equals("")) {
516 cont.setErrorNNS(this, name);
520 // lookup name to continue operation in nns
521 Object target = a_lookup(name, cont);
525 cont.setContinueNNS(target, name, this);
561 /** Resolve to context named by 'name'.
562 * Returns true if at named context (i.e. 'name' is empty name).
563 * Returns false otherwise, and sets Continuation on parts of 'name'
566 protected boolean resolve_to_context(Name name, Continuation cont)
568 String target = name.toString();
580 // something is wrong; no name at all
585 // if there is head is a non-empty name
606 * Resolves to penultimate context named by 'name'.
607 * Returns true if penultimate context has been reached (i.e. name
609 * Returns false otherwise, and sets Continuation to parts of name
612 protected boolean resolve_to_penultimate_context(Name name, Continuation cont)
614 String target = name.toString();
623 // something is wrong; no name at all
652 * it will have the proper nns name.
654 protected boolean resolve_to_penultimate_context_nns(Name name,
659 System.out.println("RESOLVE TO PENULTIMATE NNS" + name.toString());
660 boolean answer = resolve_to_penultimate_context(name, cont);
679 * Resolves to nns associated with 'name' and set Continuation
682 protected void resolve_to_nns_and_continue(Name name, Continuation cont)
685 System.out.println("RESOLVE TO NNS AND CONTINUE" + name.toString());
687 if (resolve_to_penultimate_context_nns(name, cont)) {
688 Object nns = a_lookup_nns(name.toString(), cont);
690 cont.setContinue(nns, name, this);