@Override protected ArgumentProvider make(Object value) { return new WrappingArgumentProvider(DoubleConstant.forValue((Double) value)); } };
/** * {@inheritDoc} */ public Resolved resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) { return new Resolved.Simple(DoubleConstant.forValue(value), TypeDescription.ForLoadedType.of(double.class)); }
return new ForStackManipulation(FloatConstant.forValue((Float) value)); } else if (value instanceof Double) { return new ForStackManipulation(DoubleConstant.forValue((Double) value)); } else if (value instanceof String) { return new ForStackManipulation(new TextConstant((String) value));
typeDescription = TypeDescription.ForLoadedType.of(float.class); } else if (value instanceof Double) { stackManipulation = DoubleConstant.forValue((Double) value); typeDescription = TypeDescription.ForLoadedType.of(double.class); } else if (value instanceof String) {
return setsValue(FloatConstant.forValue((Float) value), float.class); } else if (type == Double.class) { return setsValue(DoubleConstant.forValue((Double) value), double.class); } else if (JavaType.METHOD_HANDLE.getTypeStub().isAssignableFrom(type)) { return setsValue(new JavaConstantValue(JavaConstant.MethodHandle.ofLoaded(value)), type);
return new ForPoolValue(FloatConstant.forValue((Float) fixedValue), float.class); } else if (type == Double.class) { return new ForPoolValue(DoubleConstant.forValue((Double) fixedValue), double.class); } else if (JavaType.METHOD_HANDLE.getTypeStub().isAssignableFrom(type)) { return new ForPoolValue(new JavaConstantValue(JavaConstant.MethodHandle.ofLoaded(fixedValue)), type);
suppliedType = TypeDescription.ForLoadedType.of(float.class); } else if (value instanceof Double) { stackManipulation = DoubleConstant.forValue((Double) value); suppliedType = TypeDescription.ForLoadedType.of(double.class); } else if (value instanceof String) {
return new ForStackManipulation(FloatConstant.forValue((Float) value), float.class); } else if (value instanceof Double) { return new ForStackManipulation(DoubleConstant.forValue((Double) value), double.class); } else if (value instanceof Class) { return new ForStackManipulation(ClassConstant.of(TypeDescription.ForLoadedType.of((Class<?>) value)), Class.class);