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