Examples of IMXMLInstanceNode


Examples of org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode

            // and we don't need to specify destination
           
            IASNode parent = propertySpecifier.getParent();
            if (parent instanceof IMXMLInstanceNode)
            {
               IMXMLInstanceNode parentInstance = (IMXMLInstanceNode)parent;
               String parentId = parentInstance.getEffectiveID();
               assert parentId != null;
               String propName = propertySpecifier.getName();
              
              
               if (getProject().getTargetSettings().getMxmlChildrenAsData())
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode

        // Find 'name' property node.
        final IMXMLPropertySpecifierNode namePropertyNode = getPropertySpecifierNode(ATTRIBUTE_NAME);
        if (namePropertyNode != null)
        {
            final IMXMLInstanceNode namePropertyValueNode = namePropertyNode.getInstanceNode();
            if (namePropertyValueNode instanceof IMXMLStringNode)
            {
                final IMXMLStringNode stringNode = (IMXMLStringNode)namePropertyValueNode;
                methodName = stringNode.getValue();
            }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode

        // Find 'name' property node.
        final IMXMLPropertySpecifierNode namePropertyNode = getPropertySpecifierNode(ATTRIBUTE_NAME);
        if (namePropertyNode != null)
        {
            final IMXMLInstanceNode namePropertyValueNode = namePropertyNode.getInstanceNode();
            if (namePropertyValueNode instanceof IMXMLStringNode)
            {
                final IMXMLStringNode stringNode = (IMXMLStringNode)namePropertyValueNode;
                operationName = stringNode.getValue();
            }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode

        assert propertyParent != null;
  
        // If the property is a property of an instance, get id.name
        if (propertyParent instanceof IMXMLInstanceNode)
        {
            IMXMLInstanceNode instanceNode = (IMXMLInstanceNode)propertyParent;
            // get the effective id. If the component doesn't have an ID, then we will have already made up
            // one.
            String id = instanceNode.getEffectiveID();
            assert id != null;
            assert instanceNode.getID()==null || id.equals(instanceNode.getID());
            ret = id + "." + propertySpecifier.getName();
        }      
        // If it's a property of the root, get this.name
        else if (propertyParent instanceof IMXMLClassDefinitionNode)
        {
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode

                    ((IMXMLInstanceNode)parentNode).getEffectiveID() :
                    "";
       
        String name = propertyOrStyleNode.getName();       
       
        IMXMLInstanceNode propertyOrStyleValueNode = propertyOrStyleNode.getInstanceNode();
       
        MXMLDescriptorSpecifier setProp = new MXMLDescriptorSpecifier();
        setProp.isProperty = false;
        setProp.name = nameToString(overrideName);
        setProp.parent = currentInstance;
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode

            // and we don't need to specify destination
           
            IASNode parent = propertySpecifier.getParent();
            if (parent instanceof IMXMLInstanceNode)
            {
               IMXMLInstanceNode parentInstance = (IMXMLInstanceNode)parent;
               String parentId = parentInstance.getEffectiveID();
               assert parentId != null;
               String propName = propertySpecifier.getName();
              
               MXMLDescriptorSpecifier dest = new MXMLDescriptorSpecifier();
               dest.isProperty = true;
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode

    {
        // (erikdebruin) id attributes are a special case...
       
        String code = "id=\"myBtn\"";

        IMXMLInstanceNode node = (IMXMLInstanceNode) getNode(
                code, IMXMLInstanceNode.class,
                MXMLTestBase.WRAP_LEVEL_NODE);
       
        mxmlBlockWalker.visitInstance(node);

        assertThat(((IMXMLInstanceNode) node.getChild(0)).getID(), is("myBtn"));
    }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode

                    ((IMXMLInstanceNode)parentNode).getEffectiveID() :
                    "";
       
        String name = propertyOrStyleNode.getName();       
       
        IMXMLInstanceNode propertyOrStyleValueNode = propertyOrStyleNode.getInstanceNode();
       
        MXMLDescriptorSpecifier setProp = new MXMLDescriptorSpecifier();
        setProp.isProperty = false;
        setProp.name = nameToString(overrideName);
        setProp.parent = currentInstance;
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode

            // and we don't need to specify destination
           
            IASNode parent = propertySpecifier.getParent();
            if (parent instanceof IMXMLInstanceNode)
            {
               IMXMLInstanceNode parentInstance = (IMXMLInstanceNode)parent;
               String parentId = parentInstance.getEffectiveID();
               assert parentId != null;
               String propName = propertySpecifier.getName();
              
               MXMLDescriptorSpecifier dest = new MXMLDescriptorSpecifier();
               dest.isProperty = true;
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.