Source code: com/techtrader/modules/tools/bytecode/lowlevel/Entry.java
1 package com.techtrader.modules.tools.bytecode.lowlevel;
2
3
4 import java.io.DataInput;
5 import java.io.DataOutput;
6 import java.io.IOException;
7 import java.util.List;
8
9 import com.techtrader.modules.tools.bytecode.visitor.VisitAcceptor;
10
11
12 /**
13 * Base interface for all constant pool entries. Every Entry has a one-byte
14 * code representing the type of Entry, where each entry type may contain
15 * different information.
16 *
17 * @author Abe White
18 */
19 public interface Entry
20 extends VisitAcceptor
21 {
22 /**
23 * Get the constant for the type of entry represented.
24 */
25 public int getType ();
26
27
28 /**
29 * This is called by the ClassRep after reading the entry type.
30 */
31 public void readData (DataInput in)
32 throws IOException;
33
34
35 /**
36 * This is called by the ClassRep after writing the entry type.
37 */
38 public void writeData (DataOutput out)
39 throws IOException;
40
41
42 /**
43 * Return a suitable hash key for this entry.
44 */
45 public String getKey ();
46 }