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

Function classNameFor

bind/genjava.go:1671–1675  ·  view source on GitHub ↗
(t types.Type)

Source from the content-addressed store, hash-verified

1669}
1670
1671func classNameFor(t types.Type) string {
1672 obj := t.(*types.Named).Obj()
1673 pkg := obj.Pkg()
1674 return strings.Replace(pkg.Path()[len("Java/"):], "/", ".", -1) + "." + obj.Name()
1675}
1676
1677func isJavaType(t types.Type) bool {
1678 return typePkgFirstElem(t) == "Java"

Callers 5

toJavaTypeMethod · 0.85
hasThisMethod · 0.85
javaTypeMethod · 0.85
embeddedJavaClassesFunction · 0.85
genReadMethod · 0.85

Calls 1

PathMethod · 0.80

Tested by

no test coverage detected