Package org.jreversepro.reflect

Examples of org.jreversepro.reflect.Method


    short count = dis.readShort();

    List<Method> methods = new ArrayList<Method>();

    for (int i = 0; i < count; i++) {
      Method curMethod = new Method();

      short accessFlags = dis.readShort();
      short nameIndex = dis.readShort();
      short descIndex = dis.readShort();

      String name = cpInfo.getUtf8String(nameIndex);
      String descriptor = cpInfo.getUtf8String(descIndex);

      curMethod.setName(name);
      curMethod.setSignature(descriptor);
      curMethod.setQualifier(accessFlags);

      short attrCount = dis.readShort();
      for (int j = 0; j < attrCount; j++) {
        readMethodAttributes(curMethod, dis, cpInfo);
      }
      if (curMethod.getVariableTable() == null) {
        // It was not decompiled with variableTable- Hence setting it
        // using symboltable
        curMethod.initializeSymbolTable();
      }

      methods.add(curMethod);
    }
    return methods;
View Full Code Here


public class RuntimeFrameTest {

  public RuntimeFrameTest() {
    pool = new ConstantPool(10);

    Method method = new Method();
    method.setName("noname");
    method.setSignature("(II)V");
    method.setMaxLocals(10);
    method.initializeSymbolTable();

    varTable = method.getVariableTable();
  }
View Full Code Here

TOP

Related Classes of org.jreversepro.reflect.Method

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.