Package org.jreversepro.reflect

Examples of org.jreversepro.reflect.LocalVariableTable


   */
  private static void readLocalVariableTable(DataInputStream aDis,
      ConstantPool constPool, Method method) throws IOException {
    int len = aDis.readInt();

    LocalVariableTable localVarTable = new LocalVariableTable(method.isStatic());

    short localVarArrLen = aDis.readShort();
    for (int ctr = 1; ctr <= localVarArrLen; ctr++) {
      short startPc = aDis.readShort();
      short length = aDis.readShort();
      short nameIndex = aDis.readShort();
      short descIndex = aDis.readShort();
      short frameIndex = aDis.readShort();

      localVarTable.addLocalVariable(startPc, length, nameIndex, descIndex,
          constPool.getEntryValue(nameIndex), constPool
              .getEntryValue(descIndex), frameIndex);

      String jvmType = constPool.getEntryValue(descIndex);
      if (TypeInferrer.doesTypeOccupy2EntriesInVariableTable(jvmType)) {
        // Add another entry.
        localVarTable.addLocalVariable(startPc, length, nameIndex, descIndex,
            constPool.getEntryValue(nameIndex), constPool
                .getEntryValue(descIndex), (short) (frameIndex + 1));

      }

View Full Code Here

TOP

Related Classes of org.jreversepro.reflect.LocalVariableTable

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.