/** * Creates a new method delegation binder that binds method based on annotations found on the target method. * * @param parameterBinders A list of parameter binder delegates. Each such delegate is responsible for creating a * {@link org.testifyproject.bytebuddy.implementation.bind.MethodDelegationBinder.ParameterBinding} * for a specific annotation. * @return An appropriate method delegation binder. */ public static MethodDelegationBinder of(List<? extends ParameterBinder<?>> parameterBinders) { return new TargetMethodAnnotationDrivenBinder(DelegationProcessor.of(parameterBinders)); }
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod( @SuperCall Callable<?> zuper, @This(optional = true) Object object, @AllArguments Object[] args) throws Exception { return zuper.call(); }
@Override public MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loadable<FieldValue> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) { return delegate.bind(annotation, source, target, implementationTarget, assigner, typing); }
public void awaitTermination(@SuperCall Callable<?> zuper, @AllArguments Object[] args) throws InterruptedException { //for testing purpose trap calls for waitawaitTermination and do nothing LoggingUtil.INSTANCE.debug("awaitTermination intercepted and trapped"); } }
@Override // HE: Remove when Lombok support for getOuter is added. public boolean equals(Object object) { if (this == object) return true; if (object == null || getClass() != object.getClass()) return false; Appender appender = (Appender) object; return typeDescription.equals(appender.typeDescription) && FieldGetter.this.equals(appender.getOuter()); }
@Override // HE: Remove when Lombok support for getOuter is added. public boolean equals(Object other) { return this == other || !(other == null || getClass() != other.getClass()) && instrumentedType.equals(((Appender) other).instrumentedType) && MethodCall.this.equals(((Appender) other).getMethodCall()); }
@Override // HE: Remove when Lombok support for getOuter is added. public boolean equals(Object other) { return this == other || !(other == null || getClass() != other.getClass()) && MethodCall.this.equals(((Appender) other).getMethodCall()) && typeDescription.equals(((Appender) other).typeDescription); }
@Override // HE: Remove when Lombok support for getOuter is added. public boolean equals(Object object) { if (this == object) return true; if (object == null || getClass() != object.getClass()) return false; AccessorProxy that = (AccessorProxy) object; return serializableProxy == that.serializableProxy && fieldDescription.equals(that.fieldDescription) && instrumentedType.equals(that.instrumentedType) && fieldResolver.equals(that.fieldResolver) && assigner.equals(that.assigner) && Binder.this.equals(that.getOuter()); }
/** * Creates a new binder for a {@link FieldProxy} in duplex mode. * * @param proxyType The proxy type. * @param getterMethod The getter method. * @param setterMethod The setter method. */ protected Binder(TypeDescription proxyType, MethodDescription.InDefinedShape getterMethod, MethodDescription.InDefinedShape setterMethod) { this(new FieldResolver.Factory.Duplex(proxyType, getterMethod, setterMethod)); }
/** * Creates a binder for binding a fixed value to a given annotation. * * @param type The type of the annotation that is bound by this binder. * @param value The value that is assigned to any annotated parameter. * @param <V> The bound annotation's type. * @return A parameter binder that binds the given annotation to the supplied value. */ public static <V extends Annotation> ParameterBinder<V> of(Class<V> type, Object value) { return new OfConstant<V>(type, value); }
/** * Creates a new binder for a {@link FieldProxy} in simplex mode. * * @param getterMethod The getter method. * @param setterMethod The setter method. */ protected Binder(MethodDescription.InDefinedShape getterMethod, MethodDescription.InDefinedShape setterMethod) { this(new FieldResolver.Factory.Simplex(getterMethod, setterMethod)); }
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod( @SuperCall Callable<?> zuper, @This(optional = true) Object object, @AllArguments Object[] args) throws Exception { return zuper.call(); }
@Override public ParameterBinding<?> bind(MethodDescription source, Implementation.Target implementationTarget, Assigner assigner) { return parameterBinder.bind(annotation, source, target, implementationTarget, assigner, typing); } }
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod( @SuperCall Callable<?> zuper, @This(optional = true) Object object, @AllArguments Object[] args) throws Exception { return zuper.call(); }
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod( @SuperCall Callable<?> zuper, @This(optional = true) Object object, @AllArguments Object[] args) throws Exception { return zuper.call(); }
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod( @SuperCall Callable<?> zuper, @This(optional = true) Object object, @AllArguments Object[] args) throws Exception { return zuper.call(); }
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod( @SuperCall Callable<?> zuper, @This(optional = true) Object object) throws Exception { return zuper.call(); }
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod(@SuperCall Callable<?> zuper, @This(optional = true) Object object) throws Exception { return zuper.call(); }
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod( @SuperCall Callable<?> zuper, @This(optional = true) Object object) throws Exception { return zuper.call(); }
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod( @SuperCall Callable<?> zuper, @This(optional = true) Object object) throws Exception { return zuper.call(); }