Examples of IMXMLPropertySpecifierNode


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

    {
        String code = "<s:Group><s:Group><s:Group>"
                + "<s:Button>Click me</s:Button>"
                + "</s:Group></s:Group></s:Group>";

        IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                code, IMXMLPropertySpecifierNode.class,
                MXMLTestBase.WRAP_LEVEL_DOCUMENT);

        mxmlBlockWalker.visitPropertySpecifier(node);
View Full Code Here

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

    @Test
    public void testSimpleBooleanAttribute()
    {
        String code = "visible=\"false\"";

        IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                code, IMXMLPropertySpecifierNode.class,
                MXMLTestBase.WRAP_LEVEL_NODE);

        mxmlBlockWalker.visitPropertySpecifier(node);
View Full Code Here

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

    @Test
    public void testSimpleIntAttribute()
    {
        String code = "x=\"100\"";

        IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                code, IMXMLPropertySpecifierNode.class,
                MXMLTestBase.WRAP_LEVEL_NODE);

        mxmlBlockWalker.visitPropertySpecifier(node);
View Full Code Here

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

    @Test
    public void testSimpleNumberAttribute()
    {
        String code = "width=\"1.5\"";

        IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                code, IMXMLPropertySpecifierNode.class,
                MXMLTestBase.WRAP_LEVEL_NODE);

        mxmlBlockWalker.visitPropertySpecifier(node);
View Full Code Here

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

    @Test
    public void testSimpleStringAttribute()
    {
        String code = "label=\"Click me ;-)\"";

        IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                code, IMXMLPropertySpecifierNode.class,
                MXMLTestBase.WRAP_LEVEL_NODE);

        mxmlBlockWalker.visitPropertySpecifier(node);
View Full Code Here

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

    @Test
    public void testSimpleUintAttribute()
    {
        String code = "color=\"0xFF0000\"";

        IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                code, IMXMLPropertySpecifierNode.class,
                MXMLTestBase.WRAP_LEVEL_NODE);

        mxmlBlockWalker.visitPropertySpecifier(node);
View Full Code Here

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

       
        //-----------------------------------------------------------------------------
        // Second property set: maybe set destination and propertyName
       
        // get the property specifier node for the property the instanceNode represents
        IMXMLPropertySpecifierNode propertySpecifier = (IMXMLPropertySpecifierNode)
            instanceNode.getAncestorOfType( IMXMLPropertySpecifierNode.class);
   
        if (propertySpecifier == null)
        {
           assert false;        // I think this indicates an invalid tree...
        }
        else
        {
            // Check the parent - if it's an instance then we want to use these
            // nodes to get our property values from. If not, then it's the root
            // 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;
               dest.name = "destination";
               dest.parent = addItems;
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.