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

Method Type

internal/importers/java/java.go:476–503  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

474}
475
476func (t *Type) Type() string {
477 switch t.Kind {
478 case Int:
479 return "int"
480 case Boolean:
481 return "boolean"
482 case Short:
483 return "short"
484 case Char:
485 return "char"
486 case Byte:
487 return "byte"
488 case Long:
489 return "long"
490 case Float:
491 return "float"
492 case Double:
493 return "double"
494 case String:
495 return "String"
496 case Array:
497 return t.Elem.Type() + "[]"
498 case Object:
499 return t.Class
500 default:
501 panic("invalid kind")
502 }
503}
504
505func (t *Type) JNIType() string {
506 switch t.Kind {

Callers 15

InitMethod · 0.80
lookupMethodMethod · 0.80
genStructMethod · 0.80
isConsSigSupportedMethod · 0.80
hasThisMethod · 0.80
genConstructorMethod · 0.80
genFuncArgsMethod · 0.80
genObjectMethodsMethod · 0.80
genInterfaceMethod · 0.80
genJNIFuncSignatureMethod · 0.80
genFuncSignatureMethod · 0.80
genVarMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected