@Test public void self_child_check_test() throws Exception { TestScope s0 = new TestScope(); assertFalse(s0.child_scope_of(s0)); }
public synchronized boolean child_scope_of(Scope<?> scope) { Ensure.not_null(scope); for (Scope<?> p = m_parent; p != null; p = p.m_parent) { if (p == scope) { return true; } } return false; }
Scope { public synchronized boolean child_scope_of(Scope<?> scope) { Ensure.not_null(scope); for (Scope<?> p = m_parent; p != null; p = p.m_parent) { if (p == scope) { return true; } } return false; } }
Scope { public synchronized boolean child_scope_of(Scope<?> scope) { Ensure.not_null(scope); for (Scope<?> p = m_parent; p != null; p = p.m_parent) { if (p == scope) { return true; } } return false; } Scope(String name); }
Scope { public synchronized boolean child_scope_of(Scope<?> scope) { Ensure.not_null(scope); for (Scope<?> p = m_parent; p != null; p = p.m_parent) { if (p == scope) { return true; } } return false; } Scope(String name); final String name(); final Scope<T> parent(); final HierarchicalName absolute_hname(); synchronized final void add(Scope<T> scope); synchronized final void add(T obj); synchronized T find(String name); synchronized Scope<T> find_scope(String name); synchronized T find(HierarchicalName hn); synchronized Scope<T> find_scope(HierarchicalName hn); synchronized Set<T> all(); synchronized final void link(Scope<T> scope); synchronized Set<T> all_recursive(); synchronized boolean child_scope_of(Scope<?> scope); static Scope<?> common_inner_most_parent_scope(
			Set<? extends Scope<?>> scopes); }
Scope { public synchronized boolean child_scope_of(Scope<?> scope) { Ensure.not_null(scope); for (Scope<?> p = m_parent; p != null; p = p.m_parent) { if (p == scope) { return true; } } return false; } Scope(String name); final String name(); final Scope<T> parent(); final HierarchicalName absolute_hname(); synchronized final void add(Scope<T> scope); synchronized final void add(T obj); synchronized T find(String name); synchronized Scope<T> find_scope(String name); synchronized T find(HierarchicalName hn); synchronized Scope<T> find_scope(HierarchicalName hn); synchronized Set<T> all(); synchronized final void link(Scope<T> scope); synchronized Set<T> all_recursive(); synchronized boolean child_scope_of(Scope<?> scope); static Scope<?> common_inner_most_parent_scope(
			Set<? extends Scope<?>> scopes);  }