01: package org.drools.spi;
02:
03: import java.util.List;
04:
05: /**
06: * This interface is used by semantic modules that are compiled
07: * to bytecode.
08: *
09: * @author Michael Neale
10: */
11: public interface CompiledInvoker extends Invoker {
12:
13: /**
14: * Generated code should be able to return a List which represents the bytecode.
15: * The elements in the list will be used to compare one semantic invoker
16: * with another by making sure each item in the list is equivalent (equals()).
17: * There are utilities in the ASM package to retrieve the bytecode for this.
18: */
19: public List getMethodBytecode();
20: }
|