MCPcopy Create free account
hub / github.com/golang/mobile / isJavaPrimitive

Function isJavaPrimitive

bind/genjava.go:594–605  ·  view source on GitHub ↗
(T types.Type)

Source from the content-addressed store, hash-verified

592}
593
594func 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.
608func (g *JavaGen) jniType(T types.Type) string {

Callers 1

genObjectMethodsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected