1 7 8 package org.gjt.jclasslib.structures.constants; 9 10 import org.gjt.jclasslib.structures.InvalidByteCodeException; 11 12 import java.io.*; 13 14 20 public class ConstantInterfaceMethodrefInfo extends ConstantReference { 21 22 public byte getTag() { 23 return CONSTANT_INTERFACE_METHODREF; 24 } 25 26 public String getTagVerbose() { 27 return CONSTANT_INTERFACE_METHODREF_VERBOSE; 28 } 29 30 public void read(DataInput in) 31 throws InvalidByteCodeException, IOException { 32 33 super.read(in); 34 if (debug) debug("read "); 35 } 36 37 public void write(DataOutput out) 38 throws InvalidByteCodeException, IOException { 39 40 out.writeByte(CONSTANT_INTERFACE_METHODREF); 41 super.write(out); 42 if (debug) debug("wrote "); 43 } 44 45 protected void debug(String message) { 46 super.debug(message + getTagVerbose() + " with class_index " + classIndex + 47 " and name_and_type_index " + nameAndTypeIndex); 48 } 49 50 } 51 | Popular Tags |