1 23 24 package org.objectweb.fractal.julia.asm; 25 26 import org.objectweb.asm.CodeVisitor; 27 28 import java.lang.reflect.Method ; 29 import java.util.List ; 30 31 97 98 public interface CodeGenerator { 99 100 104 105 int IN = 0; 106 107 111 112 int OUT = 1; 113 114 118 119 int IN_OUT = 2; 120 121 130 131 int init (InterceptorClassGenerator icg); 132 133 145 146 void generateInitCode (CodeVisitor cv) throws ClassGenerationException; 147 148 160 161 CodeVisitor generateInterceptionCode (Method m, CodeVisitor cv) 162 throws ClassGenerationException; 163 164 175 176 void generateCloneCode (CodeVisitor cv) 177 throws ClassGenerationException; 178 179 183 184 void close (); 185 186 196 List getImplementedInterfaces () throws ClassGenerationException; 197 } 198 | Popular Tags |