Examples of FlexProject


Examples of org.apache.flex.compiler.internal.projects.FlexProject

     * with its <code>target</code>, <code>name</code>,
     * and <code>value</code> properties set.
     */
    void processStyleOverride(IMXMLStyleSpecifierNode styleNode, Context context)
    {
        FlexProject project = getProject();
        Name styleOverride = project.getStyleOverrideClassName();
        processPropertyOrStyleOverride(styleOverride, styleNode, context);
    }
View Full Code Here

Examples of org.apache.flex.compiler.internal.projects.FlexProject

     * with its <code>target</code>, <code>name</code>,
     * and <code>handlerFunction</code> properties set.
     */
    void processEventOverride(IMXMLEventSpecifierNode eventNode, Context context)
    {
        FlexProject project = getProject();
        Name eventOverride = project.getEventOverrideClassName();
       
        IASNode parentNode = eventNode.getParent();
        String id = parentNode instanceof IMXMLInstanceNode ?
                    ((IMXMLInstanceNode)parentNode).getEffectiveID() :
                    "";
View Full Code Here

Examples of org.apache.flex.compiler.internal.projects.FlexProject

     * Assumes lookup table is still in local3
     */

    void processInstanceOverride(IMXMLInstanceNode instanceNode, Context context)
    {
        FlexProject project = getProject();
        Name instanceOverrideName = project.getInstanceOverrideClassName();
       
        assert nodeToIndexMap != null;
       
        if (getProject().getTargetSettings().getMxmlChildrenAsData())
        {
View Full Code Here

Examples of org.apache.flex.compiler.internal.projects.FlexProject

            context.addInstruction(OP_constructprop, new Object[] { ABCGeneratingReducer.xmlType, 1 });
         }
        else if (node.getXMLType() == IMXMLXMLNode.XML_TYPE.OLDXML)
        {
            // mx.utils.XMLUtil.createXMLDocument(xmlString).firstChild
            FlexProject flexProject = (FlexProject)getProject();
            context.addInstruction(OP_getlex, flexProject.getXMLUtilClassName());
            context.addInstruction(OP_pushstring, node.getXMLString());
            context.addInstruction(OP_callproperty, CREATE_XML_DOCUMENT_CALL_OPERANDS);
            context.addInstruction(OP_getproperty, new Name("firstChild"));
        }
View Full Code Here

Examples of org.apache.flex.compiler.internal.projects.FlexProject

     * Pushes an instance of <code>mx.utils.ObjectProxy</code>, which represents
     * an MXML Model, and is also the value of the Model's non-leaf properties.
     */
    private void pushModelClass(Context context)
    {
        FlexProject project = getProject();
        Name modelClassName = project.getModelClassName();
       
        // Push a new ObjectProxy.
        context.addInstruction(OP_findpropstrict, modelClassName);
        context.addInstruction(OP_constructprop, new Object[] { modelClassName, 0 });               
    }
View Full Code Here

Examples of org.apache.flex.compiler.internal.projects.FlexProject

    {
        if (hasStyleSpecifiers || hasEffectSpecifiers || hasStyleTags)
        {
            // We can only override the setter for moduleFactory
            // if the class implements mx.core.IFlexModule.
            FlexProject project = getProject();
            String flexModuleInterface = project.getFlexModuleInterface();
            if (classDefinition.isInstanceOf(flexModuleInterface, project))
            {
                addVariableTrait(NAME_MODULE_FACTORY_INITIALIZED, NAME_BOOLEAN);
               
                overrideModuleFactorySetter(context);
View Full Code Here

Examples of org.apache.flex.compiler.internal.projects.FlexProject

        methodInstructions.addInstruction(OP_pushtrue);
        methodInstructions.addInstruction(OP_setproperty, NAME_MODULE_FACTORY_INITIALIZED);
       
        if (hasStyleSpecifiers || hasEffectSpecifiers)
        {
            FlexProject project = this.getProject();
            Name cssStyleDeclarationName = project.getCSSStyleDeclarationClassName();
           
            // Create an anonymous function from the style and effect-style specifiers
            // for the class definition tag. It will be set as the value of
            // styleDeclaration.defaultFactory.
            MethodInfo styleDeclarationDefaultFactory = createStyleDeclarationDefaultFactory(context);
View Full Code Here

Examples of org.apache.flex.compiler.internal.projects.FlexProject

        startProfile(Operation.GET_SEMANTIC_PROBLEMS);
       
        final Collection<ICompilerProblem> problems = Collections.emptyList();
        try
        {
            final FlexProject flexProject = (FlexProject)getProject();
           
            //flex.compiler.support.ResourceModuleBase
            ASProjectScope scope = flexProject.getScope();
            IDefinition def = scope.findDefinitionByName(flexProject.getResourceModuleBaseClass());
            ICompilationUnit resourceModuleBaseCompUnit = scope.getCompilationUnitForDefinition(def);
            flexProject.addDependency(this, resourceModuleBaseCompUnit, DependencyType.INHERITANCE,
                    def.getQualifiedName());
           
            //Add dependency to all the resource bundle compilation units we want to
            //include in the resource module SWF
            for(ICompilationUnit compUnit : resourceBundleCompUnits)
            {
                flexProject.addDependency(this, compUnit, DependencyType.EXPRESSION);
            }
        }
        catch (Throwable t)
        {
            problems.add(new InternalCompilerProblem(t));
View Full Code Here

Examples of org.apache.flex.compiler.internal.projects.FlexProject

    protected IABCBytesRequestResult handleABCBytesRequest() throws InterruptedException
    {
        startProfile(Operation.GET_ABC_BYTES);
        try
        {
            final FlexProject flexProject = (FlexProject)getProject();
            final Collection<ICompilerProblem> problems = new LinkedList<ICompilerProblem>();
            final ABCEmitter emitter = new ABCEmitter();
           
            byte[] generatedBytes = null;
            try
            {
                //this class extends "flex.compiler.support.ResourceModuleBase"
                IResolvedQualifiersReference resourceModuleBaseRef = ReferenceFactory.packageQualifiedReference(
                        flexProject.getWorkspace(), flexProject.getResourceModuleBaseClass());
               
                //Create constructor instruction list
                InstructionList constructorInstructionList = new InstructionList();
                constructorInstructionList.addInstruction(ABCConstants.OP_getlocal0);
                constructorInstructionList.addInstruction(ABCConstants.OP_pushscope)
View Full Code Here

Examples of org.apache.flex.compiler.internal.projects.FlexProject

    }

    public Optimizer()
    {
        workspace = new Workspace();
        project = new FlexProject(workspace);
        problems = new ProblemQuery();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.