Examples of LocalVariable


Examples of bytecodeparser.analysis.LocalVariable

        varargs = resolveParameters(Arrays.asList(trackableArray.elements), trackableArray.elements.length, true);
      }
    }
    if(decoded.op.as(MethodInvocationOpcode.class).isInstanceMethod()) {
      StackElement subjectSE = frame.stackBefore.stack.get(StackElementLength.add(decoded.pops));
      LocalVariable lv = getLocalVariableIfAvailable(subjectSE);
      return new MethodParams(lv != null ? new MethodParam(lv.name, lv.type) : new MethodParam(null, null), params, varargs);
    }
    return new MethodParams(null, params, varargs);
  }
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.instruct.LocalVariable

        if (!redundant) {
            GeneralVariable inst;
            if (global) {
                throw new AssertionError("Global variable found when compiling local variable");
            } else {
                inst = new LocalVariable();
                inst.setContainer(this);
                if (select != null) {
                    select.setContainer(this);
                }
                initializeInstruction(exec, decl, inst);
View Full Code Here

Examples of cn.wensiqun.asmsupport.definition.variable.LocalVariable

  @Override
    public final LocalVariable createVariable(final String name, final AClass aClass, boolean anonymous, final Parameterized para) {
    if(aClass.isArray()){
      throw new IllegalArgumentException(aClass + " is Array type exchange to createArrayVariable to create the array variable");
    }
        LocalVariable lv = createOnlyVariable(aClass, name, anonymous);
        if(para == null){
            assign(lv, aClass.getDefaultValue());
        }else{
            assign(lv, para);
        }
View Full Code Here

Examples of com.sun.jdi.LocalVariable

            Method method = getUnderlyingMethod(); // onBreak
            ReferenceType declaringType = method.declaringType(); // org.drools.core.base.mvel.MVELDebugHandler

            try {
                Object var = method.variables().get( 0 );
                LocalVariable v2 = (LocalVariable) var;
                JDILocalVariable frameLocal = new JDILocalVariable( this,
                                                                    v2 );

                IValue knownVars = DebugUtil.getValueByExpression( "return getFactory().getKnownVariables().toArray(new String[0]);",
                                                                   frameLocal.getValue() );
View Full Code Here

Examples of com.sun.jdi.LocalVariable

        //frame arg
        Method method = getUnderlyingMethod(); // onBreak
        //ReferenceType declaringType = method.declaringType(); // org.drools.core.base.mvel.MVELDebugHandler

        LocalVariable var = (LocalVariable) method.variables().get( 0 );//frame

        ClassType frameType = (ClassType) var.type();

        StackFrame frame = getUnderlyingStackFrame();
        Value value = frame.getValue( var );
        //getThread().getTopStackFrame().get
View Full Code Here

Examples of com.sun.jdi.LocalVariable

            Method method = getUnderlyingMethod(); // onBreak
            ReferenceType declaringType = method.declaringType(); // org.drools.base.mvel.MVELDebugHandler

            try {
                Object var = method.variables().get( 0 );
                LocalVariable v2 = (LocalVariable) var;
                JDILocalVariable frameLocal = new JDILocalVariable( this,
                                                                    v2 );

                IValue knownVars = DebugUtil.getValueByExpression( "return getFactory().getKnownVariables().toArray(new String[0]);",
                                                                   frameLocal.getValue() );
View Full Code Here

Examples of com.sun.jdi.LocalVariable

        //frame arg
        Method method = getUnderlyingMethod(); // onBreak
        //ReferenceType declaringType = method.declaringType(); // org.drools.base.mvel.MVELDebugHandler

        LocalVariable var = (LocalVariable) method.variables().get( 0 );//frame

        ClassType frameType = (ClassType) var.type();

        StackFrame frame = getUnderlyingStackFrame();
        Value value = frame.getValue( var );
        //getThread().getTopStackFrame().get
View Full Code Here

Examples of com.techtrader.modules.tools.bytecode.LocalVariable

        // NOTE: we scan through all the variables here, because I have been
        // told that jikes sometimes produces unpredictable ordering of the
        // local variable table.
        for (int j = 0; j < vars.length; j++) {
            LocalVariable var = vars[j];
            if (! var.getName().equals("this")) {
                if(temp.size() < var.getIndex() + 1)
                    temp.setSize(var.getIndex() + 1);
                temp.setElementAt(var.getName(), var.getIndex());
            }
        }
        int k = 0;
        for (int j = 0; j < temp.size(); j++) {
            if (temp.elementAt(j) != null) {
View Full Code Here

Examples of de.scoopgmbh.copper.instrument.MethodInfo.LocalVariable

      LabelInfo lf = labelInfos.size() >= en.jumpNo?
          new LabelInfo(en.jumpNo, -1, Collections.<String>emptyList(), Collections.<Type>emptyList(), Collections.<Type>emptyList(), Collections.<Type>emptyList(), "INCOMPATIBLE_STACKINFO_OUTPUT_ABORTED", "()V")
          :labelInfos.get(en.jumpNo);
      StackFrame sf = new StackFrame(method, lf.getLineNo(), definingClass[0].getSourceCode());
      for (int i = 0; i < lf.getLocals().length; ++i) {
        LocalVariable v = lf.getLocals()[i];
        if (v != null) {
          Object local = en.locals[i];
          Member m = new Member(v.getName(), v.getDeclaredType(), local != null?DataTool.convert(local):Data.NULL );
          sf.getLocals().add(m);
        }
      }
      for (int i = 0; i < lf.getStack().length; ++i) {
        SerializableType v = lf.getStack()[i];
        if (v != null) {
          Object local = en.stack[i];
          Member m = new Member(""+i, v.getDeclaredType(), local != null?DataTool.convert(local):Data.NULL );
          sf.getStack().add(m);
        }
      }
      verboseStack.add(sf);
      currentMethod = getMethod(classInfo, lf.getCalledMethodName(), lf.getCalledMethodDescriptor(), definingClass);
View Full Code Here

Examples of eu.admire.dispel.variables.LocalVariable

    // VARIABLE:
    LocalVariableStatement statement = StatementsFactory.eINSTANCE
        .createLocalVariableStatement();

    LocalVariable variable = VariablesFactory.eINSTANCE
        .createLocalVariable();

    statement.setVariable(variable);

    variable.setTypeReference(ref1);
    variable.setName("new_variable");
    variable.setInitialValue(ex1);

    variable.setValue(peInstance);

    // iFOnew

    ArrayList<DispelType> tDefinitions = new ArrayList<DispelType>(
        pck.getTypeDefinitions());
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.