Package flex2.compiler.util

Examples of flex2.compiler.util.IteratorList


  /**
   *  iterator containing definitions from our initializers
   */
  public Iterator<CodeFragmentList> getSubDefinitionsIterator()
  {
    IteratorList iterList = new IteratorList();

    addDefinitionIterators(iterList, getElementInitializerIterator());

    return iterList.toIterator();
  }
View Full Code Here


  /**
   *  iterator containing our initializers
   */
  public Iterator<Initializer> getSubInitializerIterator()
  {
    IteratorList iterList = new IteratorList();

    iterList.add(getElementInitializerIterator());

    return iterList.toIterator();
  }
View Full Code Here

     * Generate sub-definition initializer fragments from each of our state-
     * specific property values.
     */
    public Iterator<CodeFragmentList> getSubDefinitionIterators()
    {  
        IteratorList iterList = new IteratorList();

        Set<String> states = info.getStateNames();
        for (Iterator<String> iter = states.iterator(); iter.hasNext())
        {
            State state = (State) stateByName(iter.next());
            if (state != null)
            {
                // State event initializers
                for (Iterator<Initializer> eventList = state.getEvents(); eventList.hasNext(); )
                {
                    EventInitializer ei = (EventInitializer) eventList.next();
                    iterList.add(ei.getDefinitionsIterator());                 
                }
               
               
                // Override value initializers
                for (Iterator<StatesModel.Override> items = state.overrides.iterator(); items.hasNext(); )
                {
                    StatesModel.Override override = items.next();
                    if (override instanceof SetPropertyOverride)
                    {
                        ValueInitializer initializer = ((SetPropertyOverride)override).value;
                        Object rvalue = initializer.getValue();
                        if (rvalue instanceof Model && !initializedModels.contains(rvalue))
                        {
                            iterList.add(initializer.getDefinitionsIterator());
                            initializedModels.add(rvalue);
                        }
                    }
                }
            }
        }
       
        return iterList.toIterator();
    }
View Full Code Here

     * Generate initializer iterator from each of our state-
     * specific property values.
     */
    public Iterator<Initializer> getSubInitializerIterators()
    {  
        IteratorList iterList = new IteratorList();

        // Override Initializers
        Set<String> states = info.getStateNames();
        for (Iterator<String> iter = states.iterator(); iter.hasNext())
        {
            State state = (State) stateByName(iter.next());
            if (state != null)
            {
                // State event initializers
                iterList.add(state.getEvents())
               
                // Override value initializers
                ArrayList<Initializer> values = new ArrayList<Initializer>();
                for (Iterator<StatesModel.Override> items = state.overrides.iterator(); items.hasNext(); )
                {
                    StatesModel.Override override = items.next();
                    if (override instanceof SetPropertyOverride)
                    {
                        ValueInitializer initializer = ((SetPropertyOverride)override).value;
                        Object rvalue = initializer.getValue();
                        if (rvalue instanceof Model && !initializedModels.contains(rvalue))
                        {
                            values.add(initializer);
                            initializedModels.add(rvalue);
                        }
                    }
                }
                iterList.add(values.iterator());
            }
        }
       
        return iterList.toIterator();
    }
View Full Code Here

    /**
     *  iterator containing definitions from our initializers
     */
    public Iterator<CodeFragmentList> getSubDefinitionsIterator()
    {
        IteratorList iterList = new IteratorList();

        addDefinitionIterators(iterList, getPropertyInitializerIterator());
        addDefinitionIterators(iterList, getStyleInitializerIterator());
        addDefinitionIterators(iterList, getEffectInitializerIterator());
        addDefinitionIterators(iterList, getEventInitializerIterator());

        return iterList.toIterator();
    }
View Full Code Here

  /**
   *  iterator containing our initializers
   */
  public Iterator<Initializer> getSubInitializerIterator()
  {
    IteratorList iterList = new IteratorList();

    iterList.add(getPropertyInitializerIterator());
    iterList.add(getStyleInitializerIterator());
    iterList.add(getEffectInitializerIterator());
    iterList.add(getEventInitializerIterator());

    return iterList.toIterator();
  }
View Full Code Here

        oemConfiguration = null;
        logger = null;
        output = null;
        directory = null;
        mimeMappings = new MimeMappings();
        meter = null;
        resolver = null;
        cc = new CompilerControl();

        //data = null;
View Full Code Here

            this.files.add(files[i]);
        }
        oemConfiguration = null;
        logger = null;
        output = null;
        mimeMappings = new MimeMappings();
        meter = null;
        resolver = null;
        cc = new CompilerControl();
        //isGeneratedTargetFile = false;
View Full Code Here

                }
            }
           
        }
        ISWF swf = mxmlc.getSWFTarget();
        movie = new SimpleMovie(null);
        org.apache.flex.swf.types.Rect r = swf.getFrameSize();
        flash.swf.types.Rect fr = new flash.swf.types.Rect();
        fr.xMin = r.xMin();
        fr.yMin = r.yMin();
        fr.xMax = r.xMax();
View Full Code Here

          }
          else
          {
              if (verbose)
                System.out.println("new application");
              job = new AppJob(new Application(mainAppFile));
              apps.put(key, job);
          }
            job.app.setProgressMeter(progress);
             
            //compilations one at the time on the same project
View Full Code Here

TOP

Related Classes of flex2.compiler.util.IteratorList

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.