Package macromedia.asc.semantics

Examples of macromedia.asc.semantics.ReferenceValue


                    {
                        List values = idn.interfaces.values;
                        baseClasses = new String[values.size()];
                        for (int i = 0; i < values.size(); i++)
                        {
                            ReferenceValue rv = (ReferenceValue)values.get(i);
                            Slot s = rv.getSlot(cx, Tokens.GET_TOKEN);
                            baseClasses[i] = (s == null || s.getDebugName().length() == 0) ? rv.name : s.getDebugName();
                        }
                    }
                    else
                    {
                        baseClasses = new String[] {"Object"};
                    }
                }
                else
                {
                    if (cd.baseref != null)
                    {
                        Slot s = cd.baseref.getSlot(cx, Tokens.GET_TOKEN);
                        baseClass = (s == null || s.getDebugName().length() == 0) ? "Object" : s.getDebugName();
                    }
                    else
                    {
                        baseClass = "Object";
                    }

                    if (cd.interfaces != null)
                    {
                        List values = cd.interfaces.values;
                        interfaces = new String[values.size()];
                        for (int i = 0; i < values.size(); i++)
                        {
                            ReferenceValue rv = (ReferenceValue)values.get(i);
                            Slot s = rv.getSlot(cx, Tokens.GET_TOKEN);
                            interfaces[i] = (s == null || s.getDebugName().length() == 0) ? rv.name : s.getDebugName();
                        }
                    }
                }
View Full Code Here


//        Namespaces namespaces = new Namespaces();
//        NamespaceValue namespaceValue = new NamespaceValue();
//        namespaces.add(namespaceValue);     
//        ReferenceValue referenceValue = new ReferenceValue(ctx, null, AS3, namespaces);
       
        ReferenceValue referenceValue = new ReferenceValue(ctx, null, AS3, ctx.AS3Namespace());
        referenceValue.setIsAttributeIdentifier(false);
        as3Identifier.ref = referenceValue;
        return nodeFactory.useDirective(null,nodeFactory.memberExpression(null,nodeFactory.getExpression(as3Identifier)));
    }
View Full Code Here

            for(Node it : vdn.list.items)
            {
                VariableBindingNode binding = it instanceof VariableBindingNode ? (VariableBindingNode)it : null;
                if (binding != null)
                {
                    ReferenceValue ref = binding.ref;
                    Slot slot = null;
                    if ( ref != null )
                        slot = ref.getSlot(cx);
                    if ( slot != null && slot.getMetadata() == null )
                    {
                        for( Node meta_node : vdn.metaData.items)
                        {
                            if( meta_node instanceof MetaDataNode)
View Full Code Here

  public Value evaluate(Context cx, FunctionDefinitionNode node)
  {
         FunctionDefinitionNode fdn = node;
        int kind = fdn.fexpr.kind;
        ReferenceValue ref = fdn.fexpr.ref;
        Slot func_slot = null;
        if( ref != null )
            func_slot = ref.getSlot(cx, kind);

        if (addGoToDefinitionHelpPosition)
            addPositionMetadata(cx, fdn);

        if( func_slot != null && func_slot.getMetadata() == null && fdn.metaData != null)
View Full Code Here

        cx.popScope(); //iframe
        cx.popStaticClassScopes(node);


        ClassDefinitionNode cdn = node;
        ReferenceValue ref = cdn.ref;
        Slot classSlot = null;
        if( ref != null )
            classSlot = ref.getSlot(cx);
        if (addGoToDefinitionHelpPosition)
        {
            addPositionMetadata(cx, cdn);
        }
        if( classSlot != null && classSlot.getMetadata() == null && cdn.metaData != null )
View Full Code Here

            {
                node.base.evaluate(context, this);

                if (insideBindingsSetupFunction && (!insideArrayExpression || insideXMLExpression))
                {
                    ReferenceValue ref = getRef(node);
                    pushSrcType(context, ref, node.base);
                    pushed++;
                }
            }

            // Figure out if this member expression is a static reference.
            // If it is, then don't bother evaluating any further, because
            // we can't watch statics for changes.
            boolean staticReference = false;

            if (insideBindingsSetupFunction)
            {
                ReferenceValue ref = node.ref;
                if (ref != null)
                {
                    if (isStaticReference(node.selector, ref))
                    {
                        staticReference = true;
                        srcTypeStack.push(ref.slot.getObjectValue().toString());
                        pushed++;
                    }

                    String type = ref.getType(context).getName().toString();

                    if (type.equals("XML") || type.equals("XMLList"))
                    {
                        xmlMember = node;
                        insideXMLExpression = true;
View Full Code Here

        return dataBindingInfoList;
    }

    private ReferenceValue getRef(MemberExpressionNode memberExpression)
    {
        ReferenceValue ref = null;

        if (memberExpression.base instanceof CallExpressionNode)
        {
            CallExpressionNode base = (CallExpressionNode) memberExpression.base;
            ref = base.ref;
View Full Code Here

        IdentifierNode result = nodeFactory.identifier(name, false);
        Namespaces namespaces = new Namespaces();
        NamespaceValue namespaceValue = new NamespaceValue();
        namespaceValue.name = namespace;
        namespaces.add(namespaceValue);
        ReferenceValue referenceValue = new ReferenceValue(nodeFactory.getContext(), null, name, namespaces);
        referenceValue.setIsAttributeIdentifier(false);
        result.ref = referenceValue;
        return result;
    }
View Full Code Here

  }

    private boolean isStatic(Context cx, SelectorNode node)
    {
        boolean result = false;
        ReferenceValue ref = node.ref;

        if (ref != null)
        {
            if (ref.getType(cx).getName().toString().equals("Class") &&
                (ref.slot != null) && (ref.slot.getObjectValue() != null))
            {
                result = true;
            }
        }
View Full Code Here

                    {
                        List values = idn.interfaces.values;
                        baseClasses = new String[values.size()];
                        for (int i = 0; i < values.size(); i++)
                        {
                            ReferenceValue rv = (ReferenceValue)values.get(i);
                            Slot s = rv.getSlot(cx, Tokens.GET_TOKEN);
                            baseClasses[i] = (s == null || s.getDebugName().length() == 0) ? rv.name : s.getDebugName();
                        }
                    }
                    else
                    {
                        baseClasses = new String[] {"Object"};
                    }
                }
                else
                {
                    if (cd.baseref != null)
                    {
                        Slot s = cd.baseref.getSlot(cx, Tokens.GET_TOKEN);
                        baseClass = (s == null || s.getDebugName().length() == 0) ? "Object" : s.getDebugName();
                    }
                    else
                    {
                        baseClass = "Object";
                    }

                    if (cd.interfaces != null)
                    {
                        List values = cd.interfaces.values;
                        interfaces = new String[values.size()];
                        for (int i = 0; i < values.size(); i++)
                        {
                            ReferenceValue rv = (ReferenceValue)values.get(i);
                            Slot s = rv.getSlot(cx, Tokens.GET_TOKEN);
                            interfaces[i] = (s == null || s.getDebugName().length() == 0) ? rv.name : s.getDebugName();
                        }
                    }
                }
View Full Code Here

TOP

Related Classes of macromedia.asc.semantics.ReferenceValue

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.