Get the corresponding Java primitive TYPE class for this Primitive. @return the primitive TYPE class type of the value or Void.TYPE for Primitive.VOID or null value for type of Primitive.NULL
()
| 194 | Primitive.VOID or null value for type of Primitive.NULL |
| 195 | */ |
| 196 | public Class getType() |
| 197 | { |
| 198 | if ( this == Primitive.VOID ) |
| 199 | return Void.TYPE; |
| 200 | |
| 201 | // NULL return null as type... we currently use null type to indicate |
| 202 | // loose typing throughout bsh. |
| 203 | if ( this == Primitive.NULL ) |
| 204 | return null; |
| 205 | |
| 206 | return unboxType( value.getClass() ); |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | Perform a binary operation on two Primitives or wrapper types. |
no test coverage detected