Home | History | Annotate | Download | only in bytebuddy

Lines Matching defs:origin

56                                      @Advice.Origin Method origin,
59 if (dispatcher == null || !dispatcher.isMocked(mock) || dispatcher.isOverridden(mock, origin)) {
62 return dispatcher.handle(mock, origin, arguments);
96 public Callable<?> handle(Object instance, Method origin, Object[] arguments) throws Throwable {
103 realMethod = new SerializableRealMethodCall(identifier, origin, instance, arguments);
105 realMethod = new RealMethodCall(selfCallInfo, origin, instance, arguments);
110 origin,
129 public boolean isOverridden(Object instance, Method origin) {
136 MethodGraph.Node node = methodGraph.locate(new MethodDescription.ForLoadedMethod(origin).asSignatureToken());
137 return !node.getSort().isResolved() || !node.getRepresentative().asDefined().getDeclaringType().represents(origin.getDeclaringClass());
144 private final Method origin;
150 private RealMethodCall(SelfCallInfo selfCallInfo, Method origin, Object instance, Object[] arguments) {
152 this.origin = origin;
164 if (!Modifier.isPublic(origin.getDeclaringClass().getModifiers() & origin.getModifiers())) {
165 origin.setAccessible(true);
168 return tryInvoke(origin, instanceRef.get(), arguments);
177 private final SerializableMethod origin;
183 private SerializableRealMethodCall(String identifier, Method origin, Object instance, Object[] arguments) {
184 this.origin = new SerializableMethod(origin);
197 Method method = origin.getJavaMethod();
214 private static Object tryInvoke(Method origin, Object instance, Object[] arguments) throws Throwable {
216 return origin.invoke(instance, arguments);
219 new ConditionalStackTraceFilter().filter(hideRecursiveCall(cause, new Throwable().getStackTrace().length, origin.getDeclaringClass()));