Examples of previousFieldInstruction()


Examples of smart.updater.InstructionSearcher2.previousFieldInstruction()

        ClassGen cg = new ClassGen(c.getValue().getJavaClass());
        ConstantPoolGen cpg = cg.getConstantPool();
        for(Method m : cg.getMethods()){
          InstructionSearcher2 iS = new InstructionSearcher2(cg, m);
          if(iS.nextSIPUSH(1500)!= null){
            FieldInstruction fi = iS.previousFieldInstruction();
            data.addField("LoopCycle", fi.getClassName(cpg)+'.'+fi.getFieldName(cpg));
            return SearchResult.Success;
          }
        }
      }
View Full Code Here

Examples of smart.updater.InstructionSearcher2.previousFieldInstruction()

          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.previousFieldInstruction()

            continue;
          InstructionSearcher2 iS = new InstructionSearcher2(cg, m, il);
          while(iS.nextLDC() != null){
            LDC i = (LDC) iS.current();
            if(i.getValue(cpg).equals(-32769) || i.getValue(cpg).equals(32768)){
              FieldInstruction fi = iS.previousFieldInstruction();
              if(fi.getClassName(cpg).equals(character.className)){
                character.addField("GetInteracting", fi.getFieldName(cpg));
                return SearchResult.Success;
              }
            }
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.