Package smart.updater

Examples of smart.updater.MethodSearcher


              ConstantPoolGen cpg = c.getValue().getConstantPool();
              MethodGen gen = new MethodGen(m, c.getValue().getClassName(), cpg);
              InstructionList list = gen.getInstructionList();
              if(list == null)
                continue;
              MethodSearcher mS = new MethodSearcher(m, cg, cpg);
              if(m.isStatic() && m.isFinal() && m.getReturnType().equals(Type.VOID) && m.getArgumentTypes().length == 6
                  && mS.hasField(myplayer.path))
        {
          InstructionList il = gen.getInstructionList();
                    if (il == null) {
                        continue;
                    }
View Full Code Here


    for(Entry<String, ClassGen> c : classes.entrySet()){
      ClassGen cg = new ClassGen(c.getValue().getJavaClass());
      ConstantPoolGen cpg = cg.getConstantPool();
      for(Method m : cg.getMethods()){
        MethodGen mg = new MethodGen(m, c.getValue().getClassName(), cpg);
        MethodSearcher mS = new MethodSearcher(m, cg, cpg);
        if(m.isStatic() && m.isFinal() && m.getReturnType().equals(Type.INT) && mS.getArgCount() == 2
            && mS.getTypeCount(character.className) == 1){
          InstructionList il = mg.getInstructionList();
          if(il == null)
            continue;
          InstructionSearcher2 iS = new InstructionSearcher2(cg, m, il);
          while(iS.nextLDC() != null){
View Full Code Here

    RSClass nodeClass = data.getProperClass("Node");
    for(Entry<String, ClassGen> c : classes.entrySet()){
      ClassGen cg = new ClassGen(c.getValue().getJavaClass());
      ConstantPoolGen cpg = c.getValue().getConstantPool();
      for(Method m : c.getValue().getMethods()){
        MethodSearcher mS = new MethodSearcher(m, cg, cpg);
        if(m.isSynchronized() && m.isFinal() && m.getReturnType().equals(Type.VOID)
            && mS.getTypeCount("int[]") == 1){
          MethodGen mg = new MethodGen(m, c.getValue().getClassName(), cpg);
          InstructionList il = mg.getInstructionList();
          for(Instruction i : il.getInstructions()){
            if(i instanceof FieldInstruction){
              if(((FieldInstruction) i).getClassName(cpg).equals(nodeClass.className)){
View Full Code Here

    for(Entry<String, ClassGen> c : classes.entrySet()){
      if(c.getValue().isFinal()){
        ClassGen cg = new ClassGen(c.getValue().getJavaClass());
        ConstantPoolGen cpg = cg.getConstantPool();
        for(Method m : c.getValue().getMethods()){
          MethodSearcher mS = new MethodSearcher(m, cg, cpg);
          if(m.getName().equals("<init>") && mS.getTypeCount(npc.className) == 1 &&
              mS.getArgCount() == 1){
            RSClass npcnode = data.addClass("NPCNode", c.getValue().getClassName());
            MethodGen mg = new MethodGen(m, cg.getClassName(), cpg);
            InstructionList il = mg.getInstructionList();
            InstructionSearcher iS = new InstructionSearcher(il, cpg);
            Instruction i = iS.nextPUTFIELD();
View Full Code Here

        for (Entry<String, ClassGen> c : classes.entrySet()) {
            for (Method m : c.getValue().getMethods()) {
              ClassGen cg = new ClassGen(c.getValue().getJavaClass());
              ConstantPoolGen cpg = c.getValue().getConstantPool();
                MethodGen gen = new MethodGen(m, c.getValue().getClassName(), cpg);
                MethodSearcher mS = new MethodSearcher(m, cg, cpg);
              if(m.isFinal() && m.isStatic() && m.getReturnType().equals(Type.VOID) &&
                  mS.getArgCount() == 4 && mS.getTypeCount(player.className) == 1){
                    InstructionList il = gen.getInstructionList();
                    if (il == null) {
                        continue;
                    }
                    InstructionSearcher2 iS = new InstructionSearcher2(cg, m);
View Full Code Here

          if(c.getValue().getSuperclassName().equals(renderClass.className) &&
              !(c.getValue().getClassName().equals(sdToolkit.className)) &&
                !(cpg.lookupUtf8("microsoft") > 0) &&
                  !c.getValue().isAbstract()){
            for (Method m : c.getValue().getMethods()){
              MethodSearcher mS = new MethodSearcher(m, cg, cpg);
              if(mS.getTypeCount("java.awt.Canvas") >= 1 && m.getName().equals("<init>")){
                MethodGen mg = new MethodGen(m, c.getValue().getClassName(), cpg);
                InstructionList il = mg.getInstructionList();
                InstructionSearcher iS = new InstructionSearcher(il, cpg);
                Instruction i = iS.nextNEW();
                data.addClass("NodeList", ((NEW)i).getLoadClassType(cpg).getClassName());
View Full Code Here

    for(Entry<String, ClassGen> c : classes.entrySet()){
      ClassGen cg = new ClassGen(c.getValue().getJavaClass());
      ConstantPoolGen cpg = cg.getConstantPool();
      for(Method m : cg.getMethods()){
        MethodGen mg = new MethodGen(m, cg.getClassName(), cpg);
        MethodSearcher mS = new MethodSearcher(m, cg, cpg);
        if(m.isStatic() && m.isFinal() && m.getReturnType().equals(Type.VOID) &&
            mS.getTypeCount(player.className) == 1){
          InstructionList il = mg.getInstructionList();
          if(il == null)
            continue;
          InstructionSearcher2 iS = new InstructionSearcher2(cg, m, il);
          if(iS.nextSIPUSH(-300) != null){
View Full Code Here

              InstructionList il = gen.getInstructionList();
              if (il == null) {
                 continue;
              }
              InstructionSearcher iS = new InstructionSearcher(il, cpg);
            MethodSearcher mS = new MethodSearcher(m, cg, cpg);
            RSField menuOpCount = data.getProperField("MenuOptionCount");
            if (m.isStatic() && m.isFinal() && m.getReturnType().equals(Type.VOID) && mS.getArgCount() == 11 &&
                mS.getTypeCount("int")>= 3 && mS.hasField(menuOpCount.path)) {
                if(iS.nextFieldInstructionOf(menuOpCount.path)!=null){
                  FieldInstruction i = null;
                  i = (FieldInstruction)iS.prevGETSTATIC();
                  data.addField("MenuOpen", i.getClassName(cpg)+'.'+i.getFieldName(cpg));
                  iS.nextGETSTATIC();
View Full Code Here

    for(Entry<String, ClassGen> c : classes.entrySet()){
      ClassGen cg = new ClassGen(c.getValue().getJavaClass());
      ConstantPoolGen cpg = cg.getConstantPool();
      if(c.getValue().getSuperclassName().equals(nodeClass.className) && c.getValue().isFinal()){
        for(Method m : c.getValue().getMethods()){
          MethodSearcher mS = new MethodSearcher(m, cg, cpg);
          if(m.getName().equals("<init>") && mS.getArgCount() == 10 &&
              mS.getTypeCount("int") == 5 && mS.getTypeCount("java.lang.String")==2){
            MethodGen mg = new MethodGen(m, cg.getClassName(), cpg);
            RSClass menu = data.addClass("Menu", c.getValue().getClassName());
            int found = 0;
            InstructionSearcher iS = new InstructionSearcher(mg.getInstructionList(), cpg);
            Instruction i;
View Full Code Here

TOP

Related Classes of smart.updater.MethodSearcher

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.