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