@Override protected ArgumentProvider make(Object value) { return new WrappingArgumentProvider(FloatConstant.forValue((Float) value)); } },
/** * {@inheritDoc} */ public Resolved resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) { return new Resolved.Simple(FloatConstant.forValue(value), TypeDescription.ForLoadedType.of(float.class)); }
return new ForStackManipulation(LongConstant.forValue((Long) value)); } else if (value instanceof Float) { return new ForStackManipulation(FloatConstant.forValue((Float) value)); } else if (value instanceof Double) { return new ForStackManipulation(DoubleConstant.forValue((Double) value));
typeDescription = TypeDescription.ForLoadedType.of(long.class); } else if (value instanceof Float) { stackManipulation = FloatConstant.forValue((Float) value); typeDescription = TypeDescription.ForLoadedType.of(float.class); } else if (value instanceof Double) {
return setsValue(LongConstant.forValue((Long) value), long.class); } else if (type == Float.class) { return setsValue(FloatConstant.forValue((Float) value), float.class); } else if (type == Double.class) { return setsValue(DoubleConstant.forValue((Double) value), double.class);
return new ForPoolValue(LongConstant.forValue((Long) fixedValue), long.class); } else if (type == Float.class) { return new ForPoolValue(FloatConstant.forValue((Float) fixedValue), float.class); } else if (type == Double.class) { return new ForPoolValue(DoubleConstant.forValue((Double) fixedValue), double.class);
suppliedType = TypeDescription.ForLoadedType.of(long.class); } else if (value instanceof Float) { stackManipulation = FloatConstant.forValue((Float) value); suppliedType = TypeDescription.ForLoadedType.of(float.class); } else if (value instanceof Double) {
return new ForStackManipulation(LongConstant.forValue((Long) value), long.class); } else if (value instanceof Float) { return new ForStackManipulation(FloatConstant.forValue((Float) value), float.class); } else if (value instanceof Double) { return new ForStackManipulation(DoubleConstant.forValue((Double) value), double.class);