Package bytecodeparser.analysis.opcodes

Examples of bytecodeparser.analysis.opcodes.ConstantPushOpcode.decode()


        default:
          throw new RuntimeException("unsupported basecode=" + cpop.baseCode + "(" + cpop.getName() + ")");
      }
    } else {
      OpParameterType type = cpop.getParameterTypes()[0];
      int value = cpop.decode(context, index).parameterValues[0];
      if(type == OpParameterType.S1 || type == OpParameterType.S2) {
        for(int i = 0; i < getPops().length; i++) {
          stack.pop(getPops()[i]);
        }
        stack.push(new IntegerConstant(cpop.decode(context, index).parameterValues[0]));
View Full Code Here


      int value = cpop.decode(context, index).parameterValues[0];
      if(type == OpParameterType.S1 || type == OpParameterType.S2) {
        for(int i = 0; i < getPops().length; i++) {
          stack.pop(getPops()[i]);
        }
        stack.push(new IntegerConstant(cpop.decode(context, index).parameterValues[0]));
      } else if(type == OpParameterType.U1 || type == OpParameterType.U2) {
        Object o = context.behavior.getMethodInfo().getConstPool().getLdcValue(value);
        if(o == null) {
          ConstPool cp = context.behavior.getMethodInfo().getConstPool();
          for(Method m : ConstPool.class.getDeclaredMethods()) {
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.