001 package serp.bytecode.lowlevel;
002
003 import java.io.*;
004
005 import serp.bytecode.visitor.*;
006
007 /**
008 * A reference to a class field.
009 *
010 * @author Abe White
011 */
012 public class FieldEntry extends ComplexEntry {
013 /**
014 * Default constructor.
015 */
016 public FieldEntry() {
017 }
018
019 /**
020 * Constructor.
021 *
022 * @see ComplexEntry#ComplexEntry(int,int)
023 */
024 public FieldEntry(int classIndex, int nameAndTypeIndex) {
025 super(classIndex, nameAndTypeIndex);
026 }
027
028 public int getType() {
029 return Entry.FIELD;
030 }
031
032 public void acceptVisit(BCVisitor visit) {
033 visit.enterFieldEntry(this);
034 visit.exitFieldEntry(this);
035 }
036 }