Converts the given primitive to the wrapped java equivalent for use in field constants or constant instructions.
The wrapped java object.
This method is to return an appropriate type for the constant entry for a field definition. As such, for small integers, this will return a java.lang.Integer.
| Exception Type | Condition |
|---|---|
| TranslationException | Thrown if there is a problem converting the source argument. |
TypeMapper Class | JaCIL.Compiler.Util Namespace