1 7 8 package org.gjt.jclasslib.structures.attributes; 9 10 import org.gjt.jclasslib.structures.ClassFile; 11 import org.gjt.jclasslib.structures.InvalidByteCodeException; 12 13 import java.io.DataInput ; 14 import java.io.IOException ; 15 16 22 public class LocalVariableTableEntry extends LocalVariableCommonEntry { 23 33 public static LocalVariableTableEntry create(DataInput in, ClassFile classFile) 34 throws InvalidByteCodeException, IOException { 35 36 LocalVariableTableEntry localVariableTableEntry = new LocalVariableTableEntry(); 37 localVariableTableEntry.setClassFile(classFile); 38 localVariableTableEntry.read(in); 39 40 return localVariableTableEntry; 41 } 42 43 44 50 public int getDescriptorIndex() { 51 return descriptorOrSignatureIndex; 52 } 53 54 60 public void setDescriptorIndex(int descriptorIndex) { 61 setDescriptorOrSignatureIndex(descriptorIndex); 62 } 63 64 65 protected void debug(String message) { 66 super.debug(message + "LocalVariableTable entry with start_pc " + 67 startPc + ", length " + length + ", name_index " + nameIndex + 68 ", descriptor_index " + descriptorOrSignatureIndex + ", index " + index); 69 } 70 } 71 | Popular Tags |