Examples of nextBIPUSH()


Examples of smart.updater.InstructionSearcher2.nextBIPUSH()

        ClassGen cg = new ClassGen(c.getValue().getJavaClass());
        ConstantPoolGen cpg = c.getValue().getConstantPool();
        for(Method m : c.getValue().getMethods()){
          if(m.getReturnType().equals(Type.VOID)){
            InstructionSearcher2 search = new InstructionSearcher2(cg, m);
            while(search.nextBIPUSH() != null) {
              Instruction i = search.current();
              if(((BIPUSH)i).getValue().intValue() == -98 || ((BIPUSH)i).getValue().intValue() == 97){
                FieldInstruction npcLevel = search.previousFieldInstruction();
                npcDef.addField("GetLevel", npcLevel.getFieldName(cpg));
                return SearchResult.Success;
View Full Code Here

Examples of smart.updater.InstructionSearcher2.nextBIPUSH()

            InstructionList il = mg.getInstructionList();
            if(il == null)
              continue;
            InstructionSearcher2 iS = new InstructionSearcher2(cg, m, il);
            if(iS.nextSIPUSH(200)!= null){
              if(iS.nextBIPUSH(50)!= null){
                iS = new InstructionSearcher2(cg, m, il);
                FieldInstruction fi = iS.nextGETSTATIC();
                data.addField("PlayerCount", fi.getClassName(cpg)+'.'+fi.getFieldName(cpg));
                fi = iS.nextGETSTATIC();
                data.addField("PlayerIndexArray", fi.getClassName(cpg)+'.'+fi.getFieldName(cpg));
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.