Package org.apache.bcel.generic

Examples of org.apache.bcel.generic.ConstantPoolGen


  private final ConstantPoolGen constantPool;
  private ClassBlock classBlock;
 
  public ClassIntermediateVisitor(JavaClass javaClass) {
    this.javaClass = javaClass;
    this.constantPool = new ConstantPoolGen(javaClass.getConstantPool());
   
    this.classBlock = new ClassBlock(javaClass);
  }
View Full Code Here


   
    MethodBlock mb = null;
    boolean isConstructor = false;
   
   
        ConstantPoolGen cpg = methodGen.getConstantPool();
        LocalVariableTable lvt = methodGen.getLocalVariableTable(cpg);
       
    String access = Utility.accessToString(methodGen.getAccessFlags());
    String signature = Type.getMethodSignature(methodGen.getType(), methodGen.getArgumentTypes());
       
View Full Code Here

    RSField pixelX = data.getProperField("PixelX");
    RSField pixelY = data.getProperField("PixelY");
        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);
              InstructionList list = gen.getInstructionList();
              if(list == null)
                continue;
              MethodSearcher mS = new MethodSearcher(m, cg, cpg);
View Full Code Here

        for (Entry<String, ClassGen> c : classes.entrySet()) {
          if(c.getValue().getClassName().equals("client"))
          {
              for (Method m : c.getValue().getMethods()) {
                  if (m.isStatic() && m.isFinal() && m.getReturnType().equals(Type.VOID) && m.getArgumentTypes().length == 10) {
                    ConstantPoolGen cpg = c.getValue().getConstantPool();
                      MethodGen gen = new MethodGen(m, c.getValue().getClassName(), cpg);
                      InstructionList il = gen.getInstructionList();
                      if (il == null) {
                          continue;
                      }
View Full Code Here

  public String findNextNode(RSClient data, HashMap<String, ClassGen> classes){
    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);
View Full Code Here

  public SearchResult run(RSClient data, HashMap<String, ClassGen> classes) {
    RSClass npc = data.getProperClass("NPC");
    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());
View Full Code Here

    RSClass player = data.getProperClass("Player");
    RSClass character = data.getProperClass("Character");
        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();
View Full Code Here

        for (Entry<String, ClassGen> c : classes.entrySet()) {
          if(c.getValue().getClassName().equals("client"))
          {
              for (Method m : c.getValue().getMethods()) {
                if(m.isFinal() && m.getReturnType().equals(Type.STRING)){
                      ConstantPoolGen cpg = c.getValue().getConstantPool();
                      MethodGen gen = new MethodGen(m, c.getValue().getClassName(), cpg);
                      InstructionList il = gen.getInstructionList();
                      if (il == null) {
                          continue;
                      }
View Full Code Here

public class NodeListHead extends Search{

  public String getNodeListClass(RSClient data, HashMap<String, ClassGen> classes) {
        for (Entry<String, ClassGen> c : classes.entrySet()) {
          ClassGen cg = new ClassGen(c.getValue().getJavaClass());
          ConstantPoolGen cpg = c.getValue().getConstantPool();
          RSClass renderClass = data.getProperClass("Toolkit");
          RSClass sdToolkit = data.getProperClass("SDToolkit");
          if(sdToolkit == null || renderClass == null)
            return null;
          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);
View Full Code Here

public class MenuNodeList extends Search{
 
  public SearchResult run(RSClient data, HashMap<String, ClassGen> classes) {
        for (Entry<String, ClassGen> c : classes.entrySet()) {
          for (Method m : c.getValue().getMethods()) {
            ConstantPoolGen cpg = c.getValue().getConstantPool();
            ClassGen cg = new ClassGen(c.getValue().getJavaClass());
            MethodGen gen = new MethodGen(m, c.getValue().getClassName(), cpg);
              InstructionList il = gen.getInstructionList();
              if (il == null) {
                 continue;
View Full Code Here

TOP

Related Classes of org.apache.bcel.generic.ConstantPoolGen

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.