@Override protected ArgumentProvider make(Object value) { return new WrappingArgumentProvider(LongConstant.forValue((Long) value)); } },
/** * {@inheritDoc} */ public Resolved resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing) { return new Resolved.Simple(LongConstant.forValue(value), TypeDescription.ForLoadedType.of(long.class)); }
return new ForStackManipulation(IntegerConstant.forValue((Integer) value)); } else if (value instanceof Long) { return new ForStackManipulation(LongConstant.forValue((Long) value)); } else if (value instanceof Float) { return new ForStackManipulation(FloatConstant.forValue((Float) value));
typeDescription = TypeDescription.ForLoadedType.of(int.class); } else if (value instanceof Long) { stackManipulation = LongConstant.forValue((Long) value); typeDescription = TypeDescription.ForLoadedType.of(long.class); } else if (value instanceof Float) {
return setsValue(IntegerConstant.forValue((Integer) value), int.class); } else if (type == Long.class) { return setsValue(LongConstant.forValue((Long) value), long.class); } else if (type == Float.class) { return setsValue(FloatConstant.forValue((Float) value), float.class);
return new ForPoolValue(IntegerConstant.forValue((Integer) fixedValue), int.class); } else if (type == Long.class) { return new ForPoolValue(LongConstant.forValue((Long) fixedValue), long.class); } else if (type == Float.class) { return new ForPoolValue(FloatConstant.forValue((Float) fixedValue), float.class);
suppliedType = TypeDescription.ForLoadedType.of(int.class); } else if (value instanceof Long) { stackManipulation = LongConstant.forValue((Long) value); suppliedType = TypeDescription.ForLoadedType.of(long.class); } else if (value instanceof Float) {
return new ForStackManipulation(IntegerConstant.forValue((Integer) value), int.class); } else if (value instanceof Long) { return new ForStackManipulation(LongConstant.forValue((Long) value), long.class); } else if (value instanceof Float) { return new ForStackManipulation(FloatConstant.forValue((Float) value), float.class);
private void buildSetupStack(List<StackManipulation> stack) throws NoSuchFieldException, NoSuchMethodException { final StackManipulation setupStack = new StackManipulation.Compound( LongConstant.forValue(offset), // LDC offset MethodVariableStore.LONG.storeOffset(4) // LSTORE 4 ); stack.add(setupStack); }