Package org.eclipse.jdt.debug.core

Examples of org.eclipse.jdt.debug.core.IJavaValue


      executeBinary();
    }
  }

  private void executeAssignment() throws CoreException {
    IJavaValue value = popValue();
    IJavaVariable variable = (IJavaVariable) pop();
    IJavaValue variableValue = (IJavaValue) variable.getValue();

    switch (fResultTypeId) {
    case T_byte:
      variableValue = getByteValueResult(variableValue, value);
      break;
View Full Code Here


    variable.setValue(variableValue);
    push(variableValue);
  }

  private void executeBinary() throws CoreException {
    IJavaValue right = popValue();
    IJavaValue left = popValue();

    switch (fResultTypeId) {
    case T_String:
      pushNewValue(getStringResult(left, right));
      break;
View Full Code Here

        }
        if (field.getName().equals(RESULT_VALUE_FIELD)) {
          resultValue = (IJavaVariable) field;
        }
      }
      IJavaValue result = convertResult((IJavaClassObject) resultType.getValue(), (IJavaValue) resultValue.getValue());
      getResult().setValue(result);
    } catch (DebugException e) {
      getResult().setException(e);

      Throwable underlyingException = e.getStatus().getException();
View Full Code Here

    // args are in reverse order
    for (int i = fArgCount - 1; i >= 0; i--) {
      args[i] = popValue();
    }
    IJavaClassType clazz = (IJavaClassType) pop();
    IJavaValue result = clazz.newInstance(fSignature, args, getContext()
        .getThread());
    push(result);
  }
View Full Code Here

   * @return array object on top of the stack
   * @throws CoreException
   *             if not available
   */
  protected IJavaArray popArray() throws CoreException {
    IJavaValue value = popValue();
    if (value instanceof IJavaArray) {
      return (IJavaArray) value;
    } else if (value.isNull()) {
      // null pointer
      throw new CoreException(new Status(IStatus.ERROR,
          JDIDebugPlugin.getUniqueIdentifier(), IStatus.OK,
          InstructionsEvaluationMessages.ArrayAccess_0, null));
    } else {
View Full Code Here

   * @see Instruction#execute()
   */
  @Override
  public void execute() throws CoreException {
    IJavaType type = (IJavaType) pop();
    IJavaValue value = popValue();
    if (value instanceof JDINullValue) {
      pushNewValue(false);
      return;
    }
    IJavaObject object = (IJavaObject) value;
View Full Code Here

              javaValue);
        }
        return new LogicalObjectStructureValue(javaValue, variables);
      }
      // evaluate the logical value
      IJavaValue logicalValue = evaluationBlock.evaluate(fValue);
      if (logicalValue instanceof JDIValue) {
        ((JDIValue) logicalValue).setLogicalParent(javaValue);
      }
      return logicalValue;
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.debug.core.IJavaValue

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.