Package smart.updater

Examples of smart.updater.InstructionSearcher2.nextFieldInstruction()


          MethodGen mg = new MethodGen(m, cg.getClassName(), cpg);
          InstructionList il = mg.getInstructionList();
          if(il != null){
            InstructionSearcher2 iS = new InstructionSearcher2(cg, m, il);
            if(iS.nextLDC("gnp2 pos:") != null){
              FieldInstruction fi = iS.nextFieldInstruction();
              data.addField("NPCCount", fi.getClassName(cpg)+'.'+fi.getFieldName(cpg));
              return SearchResult.Success;
            }
          }
        }
View Full Code Here


                    InstructionList il = gen.getInstructionList();
                    if (il == null) {
                        continue;
                    }
                    InstructionSearcher2 iS = new InstructionSearcher2(cg, m);
                    while(iS.nextFieldInstruction() != null){
                      FieldInstruction fi = (FieldInstruction)iS.current();
                      if(fi.getClassName(cpg).equals(character.className)){
                        String anim = fi.getFieldName(cpg);
                        character.addField("Animation", anim);
                        int count = 0;
View Full Code Here

                      FieldInstruction fi = (FieldInstruction)iS.current();
                      if(fi.getClassName(cpg).equals(character.className)){
                        String anim = fi.getFieldName(cpg);
                        character.addField("Animation", anim);
                        int count = 0;
                        while(iS.nextFieldInstruction() != null){
                          fi = (FieldInstruction)iS.current();
                          if((fi instanceof GETFIELD) && (fi.getClassName(cpg)+'.'+fi.getFieldName(cpg)).equals(character.className+'.'+anim)){
                            count++;
                            if(count==2){
                              while(iS.nextGETFIELD() != null){
View Full Code Here

            continue;
          InstructionSearcher2 iS = new InstructionSearcher2(cg, m, il);
          if(iS.nextSIPUSH(2048) != null){
            ANEWARRAY na = iS.nextANEWARRAY();
            if(na != null && na.getLoadClassType(cpg).toString().equals(player.className)){
              FieldInstruction fi = iS.nextFieldInstruction();
              data.addField("GetPlayers", fi.getClassName(cpg)+'.'+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.