1 23 24 package org.objectweb.fractal.julia.conform.controllers; 25 26 import org.objectweb.fractal.julia.asm.SimpleCodeGenerator; 27 import org.objectweb.fractal.julia.asm.InterceptorCodeAdapter; 28 import org.objectweb.fractal.julia.asm.InterceptorClassGenerator; 29 30 import java.lang.reflect.Method ; 31 32 public class StatCodeGenerator extends SimpleCodeGenerator { 33 34 public int init (final InterceptorClassGenerator icg) { 35 super.init(icg); 36 return IN_OUT; 37 } 38 39 protected String getControllerInterfaceName () { 40 return "stat-controller"; 41 } 42 43 protected int getInterceptionType (Method m) { 44 return InterceptorCodeAdapter.EMPTY; 45 } 46 47 protected String getPreMethodName () { 48 return "incrementFcCounter"; 49 } 50 51 protected String getPostMethodName () { 52 return null; 53 } 54 55 protected Class getContextType () { 56 return Void.TYPE; 57 } 58 59 protected String getMethodName (final Method m) { 60 return m.getName(); 61 } 62 } 63 | Popular Tags |