Package com.sun.jdi

Examples of com.sun.jdi.Value


   * each access we see if the value has changed and update if required.
   *
   * @see IVariable#getValue()
   */
  public IValue getValue() throws DebugException {
    Value currentValue = getCurrentValue();
    if (fValue == null) {
      fValue = JDIValue.createValue((JDIDebugTarget) getDebugTarget(),
          currentValue);
    } else {
      Value previousValue = fValue.getUnderlyingValue();
      if (currentValue == previousValue) {
        return fValue;
      }
      if (previousValue == null || currentValue == null) {
        fValue = JDIValue.createValue(
            (JDIDebugTarget) getDebugTarget(), currentValue);
        setChangeCount(getJavaDebugTarget().getSuspendCount());
      } else if (!previousValue.equals(currentValue)) {
        fValue = JDIValue.createValue(
            (JDIDebugTarget) getDebugTarget(), currentValue);
        setChangeCount(getJavaDebugTarget().getSuspendCount());
      }
    }
View Full Code Here


      methodImpl.write(this, outData);

      writeInt(checkedArguments.size(), "size", outData); //$NON-NLS-1$
      Iterator<Value> iter = checkedArguments.iterator();
      while (iter.hasNext()) {
        Value elt = iter.next();
        if (elt instanceof ValueImpl) {
          ((ValueImpl)elt).writeWithTag(this, outData);
        } else {
          ValueImpl.writeNullWithTag(this, outData);
        }
View Full Code Here

      methodImpl.write(this, outData);

      writeInt(checkedArguments.size(), "size", outData); //$NON-NLS-1$
      Iterator<Value> iter = checkedArguments.iterator();
      while (iter.hasNext()) {
        Value elt = iter.next();
        if (elt instanceof ValueImpl) {
          checkVM(elt);
          ((ValueImpl)elt).writeWithTag(this, outData);
        } else {
          ValueImpl.writeNullWithTag(this, outData);
View Full Code Here

      requestFailed(
          JDIDebugModelMessages.JDIModificationVariable_Unable_to_generate_value___VM_disconnected__1,
          null);
    }
    String signature = getJavaType().getSignature();
    Value vmValue = null;
    try {
      switch (signature.charAt(0)) {
      case 'Z':
        String flse = Boolean.FALSE.toString();
        String tre = Boolean.TRUE.toString();
View Full Code Here

   * org.eclipse.debug.core.model.IValueModification#verifyValue(java.lang
   * .String)
   */
  @Override
  public boolean verifyValue(String expression) throws DebugException {
    Value vmValue = generateVMValue(expression);
    IValue value = JDIValue.createValue(getJavaDebugTarget(), vmValue);
    return verifyValue(value);
  }
View Full Code Here

   * org.eclipse.debug.core.model.IValueModification#setValue(java.lang.String
   * )
   */
  @Override
  public final void setValue(String expression) throws DebugException {
    Value value = generateVMValue(expression);
    setJDIValue(value);
  }
View Full Code Here

    int count = list.size();
    IJavaValue[] values = new IJavaValue[count];
    JDIDebugTarget target = (JDIDebugTarget) getDebugTarget();
    for (int i = 0; i < count; i++) {
      Value value = list.get(i);
      values[i] = JDIValue.createValue(target, value);
    }
    return values;
  }
View Full Code Here

  /**
   * @see IJavaArray#getValue(int)
   */
  public IJavaValue getValue(int index) throws DebugException {
    Value v = getUnderlyingValue(index);
    return JDIValue.createValue((JDIDebugTarget) getDebugTarget(), v);
  }
View Full Code Here

      }
    }
    int sizeNotThis = sizeAll - sizeThis;

    if (sizeThis > 0) {
      Value thisValue = thisObject();
      for (int i = 0; i < sizeAll; i++) {
        if (isThisValue[i]) {
          map.put(variables.get(i), thisValue);
        }
      }
View Full Code Here

      if (field == null) {
        field = referenceType.fieldByName("isDaemon"); //$NON-NLS-1$
      }
      if (field != null) {
        if (field.signature().equals(Signature.SIG_BOOLEAN)) {
          Value value = getUnderlyingThread().getValue(field);
          if (value instanceof BooleanValue) {
            fIsDaemon = ((BooleanValue) value).booleanValue();
          }
        }
      }
View Full Code Here

TOP

Related Classes of com.sun.jdi.Value

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.