Package org.apache.flex.compiler.common

Examples of org.apache.flex.compiler.common.DependencyTypeSet


            }
            else
            {
                assert (defs != null && defs.length <= 1) : "Lookups using a fully qualified name should find at most 1 definition";
                ICompilationUnit referencedCU = projectScope.getCompilationUnitForScope(defs[0].getContainingScope());
                DependencyTypeSet dependencyTypes = DependencyTypeSet.copyOf(dependencyEntry.getValue());
                getProject().addDependency(this, referencedCU, dependencyTypes, defs[0].getQualifiedName());
            }
        }

        // Add dependencies to the resource bundles used by this compilation unit
View Full Code Here


    private DependencyTypeSet getDependencyTypeSet()
    {
        List<String> desiredDependencies = config.getDesiredScriptDependencyTypes();
        if (desiredDependencies != null)
        {
            DependencyTypeSet dependencySet = DependencyTypeSet.noneOf();
            List<String> validDependencies = new ArrayList<String>();
            for (DependencyType type : DependencyTypeSet.allOf())
            {
                validDependencies.add(String.valueOf(type.getSymbol()));
            }
           
            // convert strings to a enum set.
            for (String desiredDependency : desiredDependencies)
            {
                if (validDependencies.contains(desiredDependency))
                    dependencySet.add(DependencyType.get(desiredDependency.charAt(0)));
            }
           
            return dependencySet;
        }
       
View Full Code Here

            return Collections.emptySet();
       
        // Loop over the filter swcs to see if they have any inheritance
        // dependencies on input swcs.
        Set<String> inheritanceDependencies = new HashSet<String>(swcPathsFilter.size());
        DependencyTypeSet inheritanceDependency = DependencyTypeSet.of(DependencyType.INHERITANCE);

        // get the inheritance dependencies of all filter swcs
        for (String swcPath : swcPathsFilter)
        {
            Set<String> swcDependencies;
View Full Code Here

    public Set<ICompilationUnit> getDependenciesOnDefinition(String definitionBaseName)
    {
        Set<ICompilationUnit> dependentUnits = new HashSet<ICompilationUnit>();
        Set<ICompilationUnit> definingUnits = projectScope.getCompilationUnitsByDefinitionName(definitionBaseName);
        DependencyTypeSet dependencyTypes = DependencyTypeSet.allOf();
        for (ICompilationUnit definingUnit : definingUnits)
        {
            dependentUnits.addAll(dependencyGraph.getDirectReverseDependencies(definingUnit, dependencyTypes));
        }
View Full Code Here

            CompilationUnitBase compilationUnit = (CompilationUnitBase)unit;
            boolean alreadyVisited = !result.add(compilationUnit);
            if (!alreadyVisited)
                workList.addAll(compilationUnit.getProject().getDependencyGraph().getIncomingEdges(compilationUnit));
        }
        DependencyTypeSet recursiveInvalidationSet = DependencyTypeSet.of(DependencyType.INHERITANCE, DependencyType.SIGNATURE, DependencyType.NAMESPACE);
        HashSet<Edge> visitedEdges = new HashSet<Edge>();
        while (!workList.isEmpty())
        {
            Edge currentEdge = workList.pop();
            if (visitedEdges.add(currentEdge))
View Full Code Here

         * @param qname The definition qualified name that is depended on
         * @param types {@link DependencyType}'s to add to this edge.
         */
        private void addDependency(String qname, DependencyTypeSet types)
        {
            DependencyTypeSet typeSet = dependencies.get(qname);
            if(typeSet != null)
            {
                DependencyTypeSet newTypeSet = DependencyTypeSet.copyOf(typeSet);
                newTypeSet.addAll(types);
                this.dependencies.put(qname, newTypeSet);
            }
            else
            {
                this.dependencies.put(qname, DependencyTypeSet.copyOf(types));
View Full Code Here

         * @param qname The definition qualified name that is depended on
         * @param type {@link DependencyType} to add to this edge.
         */
        private void addDependency(String qname, DependencyType type)
        {
            DependencyTypeSet typeSet = dependencies.get(qname);
            if (typeSet != null)
            {
                DependencyTypeSet newTypeSet = DependencyTypeSet.copyOf(typeSet);
                newTypeSet.add(type);
                this.dependencies.put(qname, newTypeSet);
            }
            else
            {
                this.dependencies.put(qname, DependencyTypeSet.of(type));
View Full Code Here

        {
            XMLStreamWriter xmlWriter = null;
            try
            {
                List<String> showSwcs = config.getShowSwcs();
                DependencyTypeSet dependencyTypes = getDependencyTypeSet();
                LibraryDependencyGraph graph = project.createLibraryDependencyGraph(dependencyTypes);
               
               
                xmlWriter = new XMLFormatter(getXMLWriter());
                xmlWriter.writeStartDocument();
View Full Code Here

         * @param qname The definition qualified name that is depended on
         * @param types {@link DependencyType}'s to add to this edge.
         */
        public void addDependency(String qname, DependencyTypeSet types)
        {
            DependencyTypeSet typeSet = dependencies.get(qname);
            if (typeSet != null)
            {
                DependencyTypeSet newTypeSet = DependencyTypeSet.copyOf(typeSet);
                newTypeSet.addAll(types);
                this.dependencies.put(qname, newTypeSet);
            }
            else
            {
                this.dependencies.put(qname, types);
View Full Code Here

            if (qname.isEmpty())
            {
                continue;
            }
            String xmlStyleQName = formatXMLStyleQName(qname);
            DependencyTypeSet dependencySet = dependencies.get(qname);
            String typeString = DependencyType.getTypeString(dependencySet);
            if(DependencyType.INHERITANCE.existsIn(dependencySet))
            {
                Element preNode = doc.createElement("pre");
                preNode.setAttribute("id", xmlStyleQName);
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.common.DependencyTypeSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.