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