Examples of ReferenceValue


Examples of macromedia.asc.semantics.ReferenceValue

        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

Examples of macromedia.asc.semantics.ReferenceValue

  }

    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

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

Examples of macromedia.asc.semantics.ReferenceValue

            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

Examples of macromedia.asc.semantics.ReferenceValue

  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

Examples of org.apache.jackrabbit.value.ReferenceValue

                for (int i = 0; i < values.length; i++) {
                    Value val = values[i];
                    UUID original = UUID.fromString(val.getString());
                    UUID adjusted = refTracker.getMappedUUID(original);
                    if (adjusted != null) {
                        newVals[i] = new ReferenceValue(session.getNodeByUUID(adjusted));
                    } else {
                        // reference doesn't need adjusting, just copy old value
                        newVals[i] = val;
                    }
                }
View Full Code Here

Examples of org.apache.jackrabbit.value.ReferenceValue

                for (int i = 0; i < values.length; i++) {
                    Value val = values[i];
                    UUID original = UUID.fromString(val.getString());
                    UUID adjusted = refTracker.getMappedUUID(original);
                    if (adjusted != null) {
                        newVals[i] = new ReferenceValue(session.getNodeByUUID(adjusted));
                    } else {
                        // reference doesn't need adjusting, just copy old value
                        newVals[i] = val;
                    }
                }
View Full Code Here

Examples of org.apache.jackrabbit.value.ReferenceValue

                for (int i = 0; i < values.length; i++) {
                    Value val = values[i];
                    String original = val.getString();
                    String adjusted = refTracker.getMappedUUID(original);
                    if (adjusted != null) {
                        newVals[i] = new ReferenceValue(session.getNodeByUUID(adjusted));
                    } else {
                        // reference doesn't need adjusting, just copy old value
                        newVals[i] = val;
                    }
                }
View Full Code Here

Examples of org.apache.jackrabbit.value.ReferenceValue

                for (int i = 0; i < values.length; i++) {
                    Value val = values[i];
                    UUID original = UUID.fromString(val.getString());
                    UUID adjusted = refTracker.getMappedUUID(original);
                    if (adjusted != null) {
                        newVals[i] = new ReferenceValue(session.getNodeByUUID(adjusted));
                    } else {
                        // reference doesn't need adjusting, just copy old value
                        newVals[i] = val;
                    }
                }
View Full Code Here

Examples of org.apache.jackrabbit.value.ReferenceValue

                for (int i = 0; i < values.length; i++) {
                    Value val = values[i];
                    UUID original = UUID.fromString(val.getString());
                    UUID adjusted = refTracker.getMappedUUID(original);
                    if (adjusted != null) {
                        newVals[i] = new ReferenceValue(session.getNodeByUUID(adjusted));
                    } else {
                        // reference doesn't need adjusting, just copy old value
                        newVals[i] = val;
                    }
                }
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.