Calls the visitor with mode {@link com.composum.sling.clientlibs.handle.ClientlibVisitor.VisitorMode#DEPENDS},
since external references are never embedded.
978492
@Override
    public void accept(ClientlibVisitor visitor, ClientlibVisitor.VisitorMode mode, ClientlibResourceFolder parent) {
        visitor.visit(this, ClientlibVisitor.VisitorMode.DEPENDS, parent);
    }
851828
protected void visit(CompoundConstraint compoundConstraint) {
		Iterator it = compoundConstraint.iterator();
        String compoundMessage = getMessageCode(compoundConstraint);
		while (it.hasNext()) {
			Constraint p = (Constraint) it.next();
			visitorSupport.invokeVisit(this, p);
			if (it.hasNext()) {
				add(compoundMessage, null, compoundMessage);
			}
		}
	}
1235465
public static void addDependency(Dependency depend)
  {
    ClassLoader loader = Thread.currentThread().getContextClassLoader();

    addDependency(depend, loader);
  }
1113597
public boolean dependsOn(DependencyNode dependency) {
        boolean dependsDirectly = dependenciesVia.contains(dependency);
        if (dependsDirectly)
            return true;
        for (DependencyNode reqDependency : dependency.dependantsVia) {
            if (dependsOn(reqDependency))
                return true;
        }
        return false;
    }
463391
@Override
	public <P, E extends Exception> void accept(ComponentVisitor<P, E> visitor, P parameter) throws E
	{
		visitor.visit(this, parameter);
	}
964728
public synchronized void add(VisitState visitState) {
		final boolean wasEntirelyBroken = isEntirelyBroken();
		if (visitState.lastExceptionClass != null) brokenVisitStates++;
		visitStates.add(visitState);
		assert brokenVisitStates <= visitStates.size();
		if (wasEntirelyBroken && ! isEntirelyBroken()) workbenchBroken.decrementAndGet();
		if (! wasEntirelyBroken && isEntirelyBroken()) workbenchBroken.incrementAndGet();
	}
519663
protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)
  {
  	if(callAttrs && (null != m_selectPattern))
  		m_selectPattern.getExpression().callVisitors(m_selectPattern, visitor);
    super.callChildVisitors(visitor, callAttrs);
  }
973800
function(dependency, message) {
      hook('requiring', dependency, message)
      try { eval(dependency) }
      catch (e) { throw 'JSpec depends on ' + dependency + ' ' + message }
      return this
    }
605669
@Override
    public void visitCode() {
        if (injectedTraceAnnotationVisitor == null && classAdapter.isInjectedTraceAnnotationRequired()) {
            AnnotationVisitor av = visitAnnotation(INJECTED_TRACE_TYPE.getDescriptor(), true);
            av.visitEnd();
        }

        super.visitCode();

        // Label the entry to the method so we can update the local var
        // debug data and indicate that we're referencing them during
        // method entry
        methodEntryLabel = new Label();
        visitLabel(methodEntryLabel);

        if (!waitingForSuper) {
            // This must be done before all instruction callbacks, but it must
            // also be done before the visitLabel() callback, which might have
            // an associated UNINITIALIZED entry in the stack map frame that is
            // supposed to be pointing at a NEW opcode.
            processMethodEntry();
        }
    }
961910
protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)
  {
  	if(callAttrs)
  		m_test.getExpression().callVisitors(m_test, visitor);
    super.callChildVisitors(visitor, callAttrs);
  }
114974
public boolean dependsOn(JSModule src, JSModule m) {
    return src != m && selfPlusTransitiveDeps[src.getIndex()].get(m.getIndex());
  }
474587
public boolean dependesOn(CmsModuleDependency other) {

        if (!m_name.equals(other.m_name)) {
            // not same name means no dependency
            return false;
        }

        // same name: result depends on version numbers
        return (m_version.compareTo(other.m_version) <= 0);
    }
450969
public static void acceptVisitor(Object bean, JavaBeanVisitor visitor)
   {
	   
	   if(bean == null)
		   return;
	   
	   Class<?> beanClass = bean.getClass();
	   
	   if(ClassPath.isPrimitive(beanClass))
	   {
		   visitor.visitClass(beanClass, bean);
		   
		   return; //no properties
	   }
	   
 	  PropertyDescriptor descriptors[] = getPropertyDescriptors(bean);
       
       Object value = null;
       for(int i = 0; i < descriptors.length; i++)
       {
               String name = descriptors[i].getName();
               if("class".equals(name))
               {
                        visitor.visitClass((Class<?>)getProperty(bean, name),bean);
                        continue;
                        
               }
                
               if(descriptors[i].getReadMethod() != null)
               {
                  value = getProperty(bean, name);
                  
                 visitor.visitProperty(name, value,bean);                 
               }
                 
       }
 	  
   }
700459
protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)
  {
  	if(callAttrs)
  		m_selectExpression.getExpression().callVisitors(m_selectExpression, visitor);
    super.callChildVisitors(visitor, callAttrs);
  }
1140431
protected void callChildVisitors(XSLTVisitor visitor, boolean callAttributes)
  {
    for (ElemTemplateElement node = m_firstChild;
      node != null;
      node = node.m_nextSibling)
      {
      node.callVisitors(visitor);
    }
  }
701455
public void setDependsOn(java.util.Collection<JobDependency> dependsOn) {
        if (dependsOn == null) {
            this.dependsOn = null;
            return;
        }

        this.dependsOn = new java.util.ArrayList<JobDependency>(dependsOn);
    }
699968
public void setDependentListener(BaseListener dependentListener)
    {   // Add this to the multi-dependecy
        if (dependentListener == null)
            return;
        boolean bAddToList = true;
        for (BaseListener listener : m_BehaviorList)
        {
            if (listener == dependentListener);
                bAddToList = false;;     // Already co-dependent
        }
        
        if (bAddToList)
            m_BehaviorList.addElement(dependentListener);
        if (dependentListener != null) if (dependentListener.getDependentListener() == null)
            dependentListener.setDependentListener(this); // Dependent on each other!
    }