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