Home
last modified time | relevance | path

Searched refs:callbackTypes (Results 1 – 3 of 3) sorted by relevance

/external/mockito/cglib-and-asm/src/org/mockito/cglib/proxy/
DEnhancer.java126 Type[] callbackTypes, in newInstance() argument
135 private Type[] callbackTypes; field in Enhancer
268 public void setCallbackTypes(Class[] callbackTypes) { in setCallbackTypes() argument
269 if (callbackTypes != null && callbackTypes.length == 0) { in setCallbackTypes()
272 this.callbackTypes = CallbackInfo.determineTypes(callbackTypes); in setCallbackTypes()
335 if (classOnly && (callbackTypes == null)) { in validate()
338 if (callbacks != null && callbackTypes != null) { in validate()
339 if (callbacks.length != callbackTypes.length) { in validate()
344 if (!check[i].equals(callbackTypes[i])) { in validate()
345 …ow new IllegalStateException("Callback " + check[i] + " is not assignable to " + callbackTypes[i]); in validate()
[all …]
DCallbackInfo.java22 public static Type[] determineTypes(Class[] callbackTypes) { in determineTypes() argument
23 Type[] types = new Type[callbackTypes.length]; in determineTypes()
25 types[i] = determineType(callbackTypes[i]); in determineTypes()
38 public static CallbackGenerator[] getGenerators(Type[] callbackTypes) { in getGenerators() argument
39 CallbackGenerator[] generators = new CallbackGenerator[callbackTypes.length]; in getGenerators()
41 generators[i] = getGenerator(callbackTypes[i]); in getGenerators()
/external/guice/core/src/com/google/inject/internal/
DProxyFactory.java163 Class<? extends Callback>[] callbackTypes = new Class[callbacks.length]; in create() local
166 callbackTypes[i] = net.sf.cglib.proxy.NoOp.class; in create()
168 callbackTypes[i] = net.sf.cglib.proxy.MethodInterceptor.class; in create()
177 enhancer.setCallbackTypes(callbackTypes); in create()