(T types.Type)
| 592 | } |
| 593 | |
| 594 | func isJavaPrimitive(T types.Type) bool { |
| 595 | b, ok := T.(*types.Basic) |
| 596 | if !ok { |
| 597 | return false |
| 598 | } |
| 599 | switch b.Kind() { |
| 600 | case types.Bool, types.Uint8, types.Float32, types.Float64, |
| 601 | types.Int, types.Int8, types.Int16, types.Int32, types.Int64: |
| 602 | return true |
| 603 | } |
| 604 | return false |
| 605 | } |
| 606 | |
| 607 | // jniType returns a string that can be used as a JNI type. |
| 608 | func (g *JavaGen) jniType(T types.Type) string { |