Examples of ReferenceValue


Examples of com.google.storage.onestore.v3.OnestoreEntity.PropertyValue.ReferenceValue

    public Key asComparable(Object value) {
      return (Key) value;
    }

    private static ReferenceValue toReferenceValue(Reference keyRef) {
      ReferenceValue refValue = new ReferenceValue();
      refValue.setApp(keyRef.getApp());
      if (keyRef.hasNameSpace()) {
        refValue.setNameSpace(keyRef.getNameSpace());
      }
      Path path = keyRef.getPath();
      for (Element element : path.elements()) {
        ReferenceValuePathElement newElement = new ReferenceValuePathElement();
        newElement.setType(element.getType());
        if (element.hasName()) {
          newElement.setName(element.getName());
        }
        if (element.hasId()) {
          newElement.setId(element.getId());
        }
        refValue.addPathElement(newElement);
      }

      return refValue;
    }
View Full Code Here

Examples of com.google.storage.onestore.v3.OnestoreEntity.PropertyValue.ReferenceValue

    @Override
    public Key getPropertyValue(PropertyValue propertyValue) {

      Reference reference = new Reference();
      ReferenceValue refValue = propertyValue.getReferenceValue();
      reference.setApp(refValue.getApp());
      if (refValue.hasNameSpace()) {
        reference.setNameSpace(refValue.getNameSpace());
      }
      Path path = new Path();
      for (ReferenceValuePathElement element : refValue.pathElements()) {
        Element newElement = new Element();
        newElement.setType(element.getType());
        if (element.hasName()) {
          newElement.setName(element.getName());
        }
View Full Code Here

Examples of com.google.storage.onestore.v3.OnestoreEntity.PropertyValue.ReferenceValue

      Reference keyRef = KeyTranslator.convertToPb((Key) value);
      setPropertyValue(propertyValue, keyRef);
    }

    private static void setPropertyValue(PropertyValue propertyValue, Reference keyRef) {
      ReferenceValue refValue = new ReferenceValue();
      refValue.setApp(keyRef.getApp());
      if (keyRef.hasNameSpace()) {
        refValue.setNameSpace(keyRef.getNameSpace());
      }
      Path path = keyRef.getPath();
      for (Element element : path.elements()) {
        ReferenceValuePathElement newElement = new ReferenceValuePathElement();
        newElement.setType(element.getType());
        if (element.hasName()) {
          newElement.setName(element.getName());
        }
        if (element.hasId()) {
          newElement.setId(element.getId());
        }
        refValue.addPathElement(newElement);
      }

      propertyValue.setReferenceValue(refValue);
    }
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

//        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

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 macromedia.asc.semantics.ReferenceValue

        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

Examples of macromedia.asc.semantics.ReferenceValue

            {
                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

Examples of macromedia.asc.semantics.ReferenceValue

        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
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.