Package org.eclipse.debug.core.model

Examples of org.eclipse.debug.core.model.IVariable


        DBGpVariable dbgpVar = (DBGpVariable) variable;
        String stackLevel = dbgpVar.getStackLevel();
        Node result = target.getCompleteString(dbgpVar.getFullName(),
            stackLevel, strValue.getRequiredBytes());
        if (result != null) {
          IVariable tempVar = new DBGpVariable(target, result,
              stackLevel);
          IValue valRes = null;
          try {
            valRes = tempVar.getValue();
            if (valRes != null) {
              // update the variable with the latest value.
              ((DBGpVariable) variable).replaceValue(valRes);
              initialValue = valRes.getValueString();
            }
View Full Code Here


    Node resp = debugTarget.eval(variable); // note this is a synchronous
                        // call
    if (resp == null) {
      return ""; //$NON-NLS-1$
    }
    IVariable tempVar = new DBGpVariable(debugTarget, resp, "-2"); //$NON-NLS-1$

    IValue val = null;

    try {
      val = tempVar.getValue();
      if (val != null) {
        value = val.getValueString();
      }
    } catch (DebugException e) {
    }
View Full Code Here

    Node resp = debugTarget.getProperty(variable, context.getStackLevel(),
        0);
    if (resp == null) {
      return ""; //$NON-NLS-1$
    }
    IVariable tempVar = new DBGpVariable(debugTarget, resp, "-2"); //$NON-NLS-1$

    IValue val = null;

    try {
      val = tempVar.getValue();
      if (val != null) {
        value = val.getValueString();
      }
    } catch (DebugException e) {
    }
View Full Code Here

                IJavaValue agendaGroup = agendaGroupValueArray[i];
                String name = "";
                List<VariableWrapper> activationsResult = new ArrayList<VariableWrapper>();
                IVariable[] agendaGroupVarArray = agendaGroup.getVariables();
                for (int j = 0; j < agendaGroupVarArray.length; j++) {
                    IVariable agendaGroupVar = agendaGroupVarArray[j];
                    if ("name".equals(agendaGroupVar.getName())) {
                        name = agendaGroupVar.getValue().getValueString();
                        break;
                    }
                }
                IJavaArray activations = (IJavaArray) DebugUtil.getValueByExpression("return getActivations();", agendaGroup);
                IJavaValue[] activationArray = activations.getValues();
View Full Code Here

                    List<VariableWrapper> variables = new ArrayList<VariableWrapper>();
                    variables.add(new VariableWrapper("ruleName", (IJavaValue) DebugUtil.getValueByExpression("return getRule().getName();", activation)));
                    String activationId = null;
                    IVariable[] activationVarArray = activation.getVariables();
                    for (int j = 0; j < activationVarArray.length; j++) {
                        IVariable activationVar = activationVarArray[j];
                        if ("activationNumber".equals(activationVar.getName())) {
                            activationId = activationVar.getValue().getValueString();
                            break;
                        }
                    }
                    if (activationId != null) {
                        IValue objects = DebugUtil.getValueByExpression("return getActivationParameters(" + activationId + ");", workingMemoryImpl);
View Full Code Here

                IJavaObject key = null;
                IJavaValue value = null;

                IVariable[] vars = mapEntry.getVariables();
                for ( int j = 0; j < vars.length; j++ ) {
                    IVariable var = vars[j];
                    if ("key".equals(var.getName())) {
                        key = (IJavaObject) var.getValue();
                    } else if ("value".equals(var.getName())) {
                        value = (IJavaValue) var.getValue();
                    }
                }
                if (value instanceof IJavaArray) {
                  List<VariableWrapper> nestedVariables = new ArrayList<VariableWrapper>();
                  addVariablesFromArray(nestedVariables, (IJavaArray)value);
View Full Code Here

    fName = name;
  }

  @Override
  public void execute() throws CoreException {
    IVariable internalVariable = getInternalVariable(fName);
    if (internalVariable != null) {
      push(internalVariable);
      return;
    }
    IRuntimeContext context = getContext();
View Full Code Here

                                    // Bug
                                    // 22165
    } else {
      type = getArrayType(fTypeSignature, fDimension);
    }
    IVariable var = createInternalVariable(fName, type);
    if (fHasInitializer) {
      var.setValue(popValue());
    }
  }
View Full Code Here

   * @param type
   *            the type of the variable to create.
   * @return the created variable.
   */
  public IVariable createInternalVariable(String name, IJavaType referencType) {
    IVariable var = new InterpreterVariable(name, referencType,
        fContext.getVM());
    fInternalVariables.put(name, var);
    return var;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.model.IVariable

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.