Package org.objectweb.asm.tree

Examples of org.objectweb.asm.tree.LdcInsnNode


   
    private void obfuscateInsnSeq(AbstractInsnNode insn)
    {
        if(matchesClass(insn))
        {
            LdcInsnNode node1 = (LdcInsnNode) insn;
            node1.cst = obf.map((String) node1.cst);
        }
        if(matchesDesc(insn))
        {
            LdcInsnNode node1 = (LdcInsnNode) insn;
            LdcInsnNode node2 = (LdcInsnNode) node1.getNext();
            LdcInsnNode node3 = (LdcInsnNode) node2.getNext();
            ObfMapping mapping = new ObfMapping((String) node1.cst, (String) node2.cst, (String) node3.cst).map(obf);
            node1.cst = mapping.s_owner;
            node2.cst = mapping.s_name;
            node3.cst = mapping.s_desc;
        }
View Full Code Here


        return this;
    }

    public MethodDefinition loadConstant(Class<?> type)
    {
        instructionList.add(new LdcInsnNode(Type.getType(type)));
        return this;
    }
View Full Code Here

        return this;
    }

    public MethodDefinition loadConstant(ParameterizedType type)
    {
        instructionList.add(new LdcInsnNode(Type.getType(type.getType())));
        return this;
    }
View Full Code Here

        return this;
    }

    public MethodDefinition loadConstant(String value)
    {
        instructionList.add(new LdcInsnNode(value));
        return this;
    }
View Full Code Here

                break;
            case 5:
                instructionList.add(new InsnNode(ICONST_5));
                break;
            default:
                instructionList.add(new LdcInsnNode(value));
                break;
        }
        return this;
    }
View Full Code Here

        new LabelNode()));
  }

  @Test
  public void testLdcInsn() {
    testInstructionBetweenFrames(new LdcInsnNode("JaCoCo"));
  }
View Full Code Here

         case ACONST_NULL:
            return new ConstantValue.NullConstant();
         case LDC:
         {
            assert(insn instanceof LdcInsnNode);
            LdcInsnNode ldcInsn = (LdcInsnNode)insn;
            Object val = ldcInsn.cst;
            if (val instanceof String)
               return new ConstantValue.StringConstant((String)val);
            else if (val instanceof Integer)
               return new ConstantValue.IntegerConstant(((Integer)val).intValue());
View Full Code Here

        if (names[0].equals(mName) && "(J)I".equals(m.desc)) {
          updated = true;
          for (int i = 0, e = m.instructions.size(); i < e; ++i) {
            AbstractInsnNode n = m.instructions.get(i);
            if (n.getOpcode() == LXOR) {
              m.instructions.insertBefore(n, new LdcInsnNode(new Long(13L)));
              m.instructions.insertBefore(n, new InsnNode(LMUL));
              break;
            }
          }
          if (containsItem != null) {
View Full Code Here

        return this;
    }

    public MethodDefinition loadConstant(Class<?> type)
    {
        instructionList.add(new LdcInsnNode(Type.getType(type)));
        return this;
    }
View Full Code Here

        return this;
    }

    public MethodDefinition loadConstant(ParameterizedType type)
    {
        instructionList.add(new LdcInsnNode(Type.getType(type.getType())));
        return this;
    }
View Full Code Here

TOP

Related Classes of org.objectweb.asm.tree.LdcInsnNode

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.