Package bytecodeparser.analysis.decoders

Examples of bytecodeparser.analysis.decoders.DecodedMethodInvocationOp


    CtMethod method = getMethod(clazz, "wideTestSubject");
    StackAnalyzer analyzer = new StackAnalyzer(method);
    Frames frames = analyzer.analyze();
    for(Frame frame : frames) {
      if(frame.decodedOp instanceof DecodedMethodInvocationOp) {
        DecodedMethodInvocationOp dmio = (DecodedMethodInvocationOp) frame.decodedOp;
        String[] names = DecodedMethodInvocationOp.resolveParametersNames(frame, true);
        if(dmio.getName().equals("mixed2")) {
          assertDeepEquals(names, new String[] { "sum", "i1", "i255", "i256", "i300" });
        }
      }
    }
  }
View Full Code Here


    return code != Opcode.INVOKESTATIC;
  }
  @Override
  public DecodedMethodInvocationOp decode(Context context, int index) {
    try {
      return new DecodedMethodInvocationOp(this, context, index);
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

TOP

Related Classes of bytecodeparser.analysis.decoders.DecodedMethodInvocationOp

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.