Get the corresponding primitive TYPE class for the java.lang wrapper class type. e.g. Integer.class -> Integer.TYPE
( Class wrapperType )
| 955 | e.g. Integer.class -> Integer.TYPE |
| 956 | */ |
| 957 | public static Class unboxType( Class wrapperType ) |
| 958 | { |
| 959 | Class c = wrapperMap.get( wrapperType ); |
| 960 | if ( c != null ) |
| 961 | return c; |
| 962 | throw new InterpreterError( |
| 963 | "Not a primitive wrapper type: "+wrapperType ); |
| 964 | } |
| 965 | |
| 966 | /** |
| 967 | Cast this bsh.Primitive value to a new bsh.Primitive value |
no test coverage detected