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