Source code: com/techtrader/modules/tools/bytecode/visitor/VisitAcceptor.java
1 package com.techtrader.modules.tools.bytecode.visitor;
2
3
4 /**
5 * Interface denoting an entity that can accept a BCVisitor and provide
6 * its internal state to it. All entities in the bytecode framework
7 * implement this interface.
8 *
9 * @author Abe White
10 */
11 public interface VisitAcceptor
12 {
13 /**
14 * Accept a visit from a BCVisitor, calling the appropriate methods
15 * to notify the visitor that it has entered this entity, and
16 * to provide it with the proper callbacks for each sub-entity owned
17 * by this object.
18 */
19 public void acceptVisit (BCVisitor visitor);
20 }
21