Examples of LocalVariableInfo


Examples of com.google.test.metric.LocalVariableInfo

  public void visitLocalVariable(String name, String desc, String signature,
      Label start, Label end, int slotNum) {
    Type type = Type.fromDesc(desc);
    Variable variable = slots.get(slotNum);
    if (variable == null) {
      LocalVariableInfo localVar = new LocalVariableInfo(name, type);
      slots.put(slotNum, localVar);
      localVariables.add(localVar);
    } else {
      variable.setName(name);
    }
View Full Code Here

Examples of com.google.test.metric.LocalVariableInfo

  }

  private Variable variable(int varIndex, Type type) {
    Variable variable = slots.get(varIndex);
    if (variable == null) {
      LocalVariableInfo localVar = new LocalVariableInfo("local_" + varIndex, type);
      slots.put(varIndex, localVar);
      localVariables.add(localVar);
      variable = localVar;
    }
    Type varType = variable.getType();
View Full Code Here

Examples of com.google.test.metric.LocalVariableInfo

    Label runtimeHandler = new Label();
    Label catchEnd = new Label();
    Label finallyHandler = new Label();
    Label l20 = new Label();
    Label l22 = new Label();
    Variable b = new LocalVariableInfo("b", Type.INT);
    Variable e = new LocalVariableInfo("e", Type.OBJECT);
    Variable any = new LocalVariableInfo("any", Type.OBJECT);
    decomposer.tryCatchBlock(tryStart, tryEnd, runtimeHandler, "java/lang/RuntimeException");
    decomposer.tryCatchBlock(tryStart, catchEnd, finallyHandler, null);

    /* 0*/ decomposer.addOp(new Load(0, new Constant(1, Type.INT)));
    /* 1*/ decomposer.addOp(new Store(1, b));
View Full Code Here

Examples of tod.core.database.structure.IStructureDatabase.LocalVariableInfo

        }
       
        Object[] arguments = call.getArguments();
        List<LocalVariableInfo> localVars = result.behavior.getLocalVariables();
        for (int i = 0; i < localVars.size(); i++) {
            LocalVariableInfo var = localVars.get(i);
            if (var != null) {
                if (var.getIndex() <= arguments.length) {
                    try {
                        Object arg = arguments[var.getIndex() - startIdx];
                        this.updateParameter(var, arg, call.getTimestamp());
                    } catch (ArrayIndexOutOfBoundsException e) {
                    }
                }
            }
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.