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

Function JavaClassName

bind/genjava.go:1021–1026  ·  view source on GitHub ↗

JavaClassName returns the name of the Java class that contains Go package level identifiers.

(pkg *types.Package)

Source from the content-addressed store, hash-verified

1019// JavaClassName returns the name of the Java class that
1020// contains Go package level identifiers.
1021func JavaClassName(pkg *types.Package) string {
1022 if pkg == nil {
1023 return "Universe"
1024 }
1025 return javaNameReplacer(strings.Title(pkg.Name()))
1026}
1027
1028func (g *JavaGen) genConst(o *types.Const) {
1029 if _, ok := o.Type().(*types.Basic); !ok || !g.isSupported(o.Type()) {

Callers 7

genStructMethod · 0.85
javaTypeNameMethod · 0.85
genInterfaceMethod · 0.85
javaTypeMethod · 0.85
classNameMethod · 0.85
GenCMethod · 0.85
GenJavaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected