Lines Matching refs:constant

553       MethodHandle constant = MethodHandles.constant(int.class, 56);  in testConstant()  local
554 int value = (int) constant.invoke(); in testConstant()
560 constant = MethodHandles.constant(int.class, (short) 52); in testConstant()
561 value = (int) constant.invoke(); in testConstant()
567 constant = MethodHandles.constant(int.class, (char) 'b'); in testConstant()
568 value = (int) constant.invoke(); in testConstant()
574 constant = MethodHandles.constant(int.class, (byte) 0x1); in testConstant()
575 value = (int) constant.invoke(); in testConstant()
583 MethodHandles.constant(int.class, false); in testConstant()
589 MethodHandles.constant(int.class, 0.1f); in testConstant()
595 MethodHandles.constant(int.class, 0.2); in testConstant()
601 MethodHandles.constant(int.class, 73l); in testConstant()
609 MethodHandle constant = MethodHandles.constant(long.class, 56l); in testConstant() local
610 long value = (long) constant.invoke(); in testConstant()
615 constant = MethodHandles.constant(long.class, (int) 56); in testConstant()
616 value = (long) constant.invoke(); in testConstant()
624 MethodHandle constant = MethodHandles.constant(byte.class, (byte) 0x12); in testConstant() local
625 byte value = (byte) constant.invoke(); in testConstant()
633 MethodHandle constant = MethodHandles.constant(boolean.class, true); in testConstant() local
634 boolean value = (boolean) constant.invoke(); in testConstant()
642 MethodHandle constant = MethodHandles.constant(char.class, 'f'); in testConstant() local
643 char value = (char) constant.invoke(); in testConstant()
651 MethodHandle constant = MethodHandles.constant(short.class, (short) 123); in testConstant() local
652 short value = (short) constant.invoke(); in testConstant()
660 MethodHandle constant = MethodHandles.constant(float.class, 56.0f); in testConstant() local
661 float value = (float) constant.invoke(); in testConstant()
669 MethodHandle constant = MethodHandles.constant(double.class, 256.0); in testConstant() local
670 double value = (double) constant.invoke(); in testConstant()
678 MethodHandle constant = MethodHandles.constant(String.class, "256.0"); in testConstant() local
679 String value = (String) constant.invoke(); in testConstant()