1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.bcel.classfile;
18
19 /***
20 * Interface to make use of the Visitor pattern programming style.
21 * I.e. a class that implements this interface can traverse the contents of
22 * a Java class just by calling the `accept' method which all classes have.
23 *
24 * @version $Id: Visitor.java 386056 2006-03-15 11:31:56Z tcurdt $
25 * @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
26 */
27 public interface Visitor {
28
29
30
31
32
33 public void visitCode( Code obj );
34
35
36 public void visitCodeException( CodeException obj );
37
38
39 public void visitConstantClass( ConstantClass obj );
40
41
42 public void visitConstantDouble( ConstantDouble obj );
43
44
45 public void visitConstantFieldref( ConstantFieldref obj );
46
47
48 public void visitConstantFloat( ConstantFloat obj );
49
50
51 public void visitConstantInteger( ConstantInteger obj );
52
53
54 public void visitConstantInterfaceMethodref( ConstantInterfaceMethodref obj );
55
56
57 public void visitConstantLong( ConstantLong obj );
58
59
60 public void visitConstantMethodref( ConstantMethodref obj );
61
62
63 public void visitConstantNameAndType( ConstantNameAndType obj );
64
65
66 public void visitConstantPool( ConstantPool obj );
67
68
69 public void visitConstantString( ConstantString obj );
70
71
72 public void visitConstantUtf8( ConstantUtf8 obj );
73
74
75 public void visitConstantValue( ConstantValue obj );
76
77
78 public void visitDeprecated( Deprecated obj );
79
80
81 public void visitExceptionTable( ExceptionTable obj );
82
83
84 public void visitField( Field obj );
85
86
87 public void visitInnerClass( InnerClass obj );
88
89
90 public void visitInnerClasses( InnerClasses obj );
91
92
93 public void visitJavaClass( JavaClass obj );
94
95
96 public void visitLineNumber( LineNumber obj );
97
98
99 public void visitLineNumberTable( LineNumberTable obj );
100
101
102 public void visitLocalVariable( LocalVariable obj );
103
104
105 public void visitLocalVariableTable( LocalVariableTable obj );
106
107
108 public void visitMethod( Method obj );
109
110
111 public void visitSignature( Signature obj );
112
113
114 public void visitSourceFile( SourceFile obj );
115
116
117 public void visitSynthetic( Synthetic obj );
118
119
120 public void visitUnknown( Unknown obj );
121
122
123 public void visitStackMap( StackMap obj );
124
125
126 public void visitStackMapEntry( StackMapEntry obj );
127 }