1 17 package org.apache.bcel.classfile; 18 19 import java.io.DataInputStream ; 20 import java.io.IOException ; 21 import org.apache.bcel.Constants; 22 23 29 public final class ConstantFieldref extends ConstantCP { 30 31 34 public ConstantFieldref(ConstantFieldref c) { 35 super(Constants.CONSTANT_Fieldref, c.getClassIndex(), c.getNameAndTypeIndex()); 36 } 37 38 39 45 ConstantFieldref(DataInputStream file) throws IOException { 46 super(Constants.CONSTANT_Fieldref, file); 47 } 48 49 50 54 public ConstantFieldref(int class_index, int name_and_type_index) { 55 super(Constants.CONSTANT_Fieldref, class_index, name_and_type_index); 56 } 57 58 59 66 public void accept( Visitor v ) { 67 v.visitConstantFieldref(this); 68 } 69 } 70 | Popular Tags |