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