Package org.chromium.sdk.internal.v8native.value

Examples of org.chromium.sdk.internal.v8native.value.PropertyReference


    if (receiverVariableRef.get() != null) {
      return;
    }
    JsVariable result;

    PropertyReference ref = V8Helper.computeReceiverRef(frameObject);
    if (ref == null) {
      result = null;
    } else {
      ValueLoader valueLoader = context.getValueLoader();
      ValueMirror mirror =
          valueLoader.getOrLoadValueFromRefs(Collections.singletonList(ref)).get(0);
      // This name should be string. We are making it string as a fall-back strategy.
      String varNameStr = ref.getName().toString();
      // 'this' variable is not mutable. Consider making it mutable.
      result = new JsVariableBase.Impl(valueLoader, mirror, varNameStr);
    }
    if (result != null) {
      receiverVariableRef.compareAndSet(null, result);
View Full Code Here


    };
  }

  public static <OBJ> void putMirror(List<PropertyReference> refs, OBJ propertyObject,
      V8ProtocolUtil.PropertyNameGetter<OBJ> nameGetter) {
    PropertyReference propertyRef = V8ProtocolUtil.extractProperty(propertyObject, nameGetter);
    if (propertyRef != null) {
      refs.add(propertyRef);
    }
  }
View Full Code Here

        : PropertyType.NORMAL.value;
    if (propTypeValue == PropertyType.FIELD.value ||
        propTypeValue == PropertyType.CONSTANT_FUNCTION.value ||
        propTypeValue == PropertyType.CALLBACKS.value ||
        propTypeValue == PropertyType.NORMAL.value) {
      return new PropertyReference(name, propValue);
    }
    return null;
  }
View Full Code Here

    if (receiverVariableRef.get() != null) {
      return;
    }
    JsVariable result;

    PropertyReference ref = V8Helper.computeReceiverRef(frameObject);
    if (ref == null) {
      result = null;
    } else {
      ValueLoader valueLoader = context.getValueLoader();
      ValueMirror mirror =
          valueLoader.getOrLoadValueFromRefs(Collections.singletonList(ref)).get(0);
      // This name should be string. We are making it string as a fall-back strategy.
      String varNameStr = ref.getName().toString();
      result = new JsVariableImpl(valueLoader, mirror, varNameStr);
    }
    if (result != null) {
      receiverVariableRef.compareAndSet(null, result);
    }
View Full Code Here

    };
  }

  public static <OBJ> void putMirror(List<PropertyReference> refs, OBJ propertyObject,
      V8ProtocolUtil.PropertyNameGetter<OBJ> nameGetter) {
    PropertyReference propertyRef = V8ProtocolUtil.extractProperty(propertyObject, nameGetter);
    if (propertyRef != null) {
      refs.add(propertyRef);
    }
  }
View Full Code Here

        : PropertyType.NORMAL.value;
    if (propTypeValue == PropertyType.FIELD.value ||
        propTypeValue == PropertyType.CONSTANT_FUNCTION.value ||
        propTypeValue == PropertyType.CALLBACKS.value ||
        propTypeValue == PropertyType.NORMAL.value) {
      return new PropertyReference(name, propValue);
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.chromium.sdk.internal.v8native.value.PropertyReference

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.