1 23 24 25 package com.sun.jdo.api.persistence.enhancer.classfile; 26 27 import java.io.*; 28 29 33 34 public class ConstInterfaceMethodRef extends ConstBasicMemberRef { 35 36 public static final int MyTag = CONSTANTInterfaceMethodRef; 37 38 39 40 43 public int tag () { return MyTag; } 44 45 48 public String toString () { 49 return "CONSTANTInterfaceMethodRef(" + indexAsString() + "): " + super.toString(); 51 } 52 53 54 55 ConstInterfaceMethodRef (ConstClass cname, ConstNameAndType NT) { 56 super(cname, NT); 57 } 58 59 ConstInterfaceMethodRef (int cnameIndex, int NT_index) { 60 super(cnameIndex, NT_index); 61 } 62 63 static ConstInterfaceMethodRef read (DataInputStream input) 64 throws IOException { 65 int cname = input.readUnsignedShort(); 66 int NT = input.readUnsignedShort(); 67 return new ConstInterfaceMethodRef (cname, NT); 68 } 69 } 70 71 | Popular Tags |