Examples of current()


Examples of smart.updater.InstructionSearcher.current()

          if(m.getName().equals("<init>")){
            MethodGen mg = new MethodGen(m, c.getValue().getClassName(), cpg);
            InstructionList il = mg.getInstructionList();
            InstructionSearcher iS = new InstructionSearcher(il, cpg);
            while(iS.next() != null){
              Instruction i = iS.current();
              if(i instanceof LDC){
                if(((LDC) i).getValue(cpg).equals(-32768)){
                  i = iS.nextPUTFIELD();
                  character.addField("GetHeight", ((PUTFIELD) i).getFieldName(cpg));
                  return SearchResult.Success;
View Full Code Here

Examples of smart.updater.InstructionSearcher2.current()

                    }
                    String sDestX;
                    int count = 0;
                    InstructionSearcher2 iS = new InstructionSearcher2(cg, m);
                    while(iS.nextGETSTATIC() != null){
                      FieldInstruction fi = (FieldInstruction)iS.current();
                      if((fi.getClassName(cpg)+'.'+fi.getFieldName(cpg)).equals(myplayer.path)){
                        count++;
                        if(count==7){
                          fi = iS.nextGETSTATIC();
                          sDestX = fi.getClassName(cpg)+'.'+fi.getFieldName(cpg);
View Full Code Here

Examples of smart.updater.InstructionSearcher2.current()

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

          InstructionList il = mg.getInstructionList();
          if(il == null)
            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

Examples of smart.updater.InstructionSearcher2.current()

                    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;
                        while(iS.nextFieldInstruction() != null){
View Full Code Here

Examples of smart.updater.InstructionSearcher2.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){
                                GETFIELD gf = ((GETFIELD)iS.current());
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.