Generates the instructions to box the top stack value using Java 5's valueOf() method. This value is replaced by its boxed equivalent on top of the stack. @param type the type of the top stack value.
(final Type type)
| 855 | * @param type the type of the top stack value. |
| 856 | */ |
| 857 | public void valueOf(final Type type) { |
| 858 | if (type.getSort() == Type.OBJECT || type.getSort() == Type.ARRAY) { |
| 859 | return; |
| 860 | } |
| 861 | if (type == Type.VOID_TYPE) { |
| 862 | push((String) null); |
| 863 | } else { |
| 864 | Type boxedType = getBoxedType(type); |
| 865 | invokeStatic(boxedType, new Method("valueOf", boxedType, new Type[] {type})); |
| 866 | } |
| 867 | } |
| 868 | |
| 869 | /** |
| 870 | * Generates the instructions to unbox the top stack value. This value is replaced by its unboxed |
no test coverage detected