Examples of InvokeInstruction


Examples of org.aspectj.apache.bcel.generic.InvokeInstruction

      r.associateWithTargets(Range.genStart(body, call.getNext()), Range.genEnd(body));
    }
  }

  private boolean isThisCall(InstructionHandle ih) {
    InvokeInstruction inst = (InvokeInstruction) ih.getInstruction();
    return inst.getClassName(cpg).equals(clazz.getName());
  }
View Full Code Here

Examples of org.aspectj.apache.bcel.generic.InvokeInstruction

   * get a called method: Assumes the called method is in this class, and the reference to it is exact (a la INVOKESPECIAL).
   *
   * @param ih The InvokeInstruction instructionHandle pointing to the called method.
   */
  private LazyMethodGen getCalledMethod(InstructionHandle ih) {
    InvokeInstruction inst = (InvokeInstruction) ih.getInstruction();

    String methodName = inst.getName(cpg);
    String signature = inst.getSignature(cpg);

    return clazz.getLazyMethodGen(methodName, signature);
  }
View Full Code Here

Examples of org.aspectj.apache.bcel.generic.InvokeInstruction

        if (canMatch(Shadow.FieldGet)) {
          matchGetInstruction(mg, ih, enclosingShadow, shadowAccumulator);
        }
      }
    } else if (i instanceof InvokeInstruction) {
      InvokeInstruction ii = (InvokeInstruction) i;
      if (ii.getMethodName(clazz.getConstantPool()).equals("<init>")) {
        if (canMatch(Shadow.ConstructorCall)) {
          match(BcelShadow.makeConstructorCall(world, mg, ih, enclosingShadow), shadowAccumulator);
        }
      } else if (ii.opcode == Constants.INVOKESPECIAL) {
        String onTypeName = ii.getClassName(cpg);
        if (onTypeName.equals(mg.getEnclosingClass().getName())) {
          // we are private
          matchInvokeInstruction(mg, ih, ii, enclosingShadow, shadowAccumulator);
        } else {
          // we are a super call, and this is not a join point in
View Full Code Here

Examples of org.teavm.model.instructions.InvokeInstruction

            Variable var = program.createVariable();
            ConstructInstruction construct = new ConstructInstruction();
            construct.setReceiver(var);
            construct.setType("com.sun.tools.javac.api.JavacTool");
            block.getInstructions().add(construct);
            InvokeInstruction init = new InvokeInstruction();
            init.setInstance(var);
            init.setType(InvocationType.SPECIAL);
            init.setMethod(new MethodReference("com.sun.tools.javac.api.JavacTool", "<init>", ValueType.VOID));
            block.getInstructions().add(init);
            ExitInstruction exit = new ExitInstruction();
            exit.setValueToReturn(var);
            block.getInstructions().add(exit);
            method.setProgram(program);
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.