1 package serp.bytecode.lowlevel; 2 3 import java.io.*; 4 5 import serp.bytecode.visitor.*; 6 7 /*** 8 * A reference to a class field. 9 * 10 * @author Abe White 11 */ 12 public class FieldEntry extends ComplexEntry { 13 /*** 14 * Default constructor. 15 */ 16 public FieldEntry() { 17 } 18 19 /*** 20 * Constructor. 21 * 22 * @see ComplexEntry#ComplexEntry(int,int) 23 */ 24 public FieldEntry(int classIndex, int nameAndTypeIndex) { 25 super(classIndex, nameAndTypeIndex); 26 } 27 28 public int getType() { 29 return Entry.FIELD; 30 } 31 32 public void acceptVisit(BCVisitor visit) { 33 visit.enterFieldEntry(this); 34 visit.exitFieldEntry(this); 35 } 36 }