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

Method javaTypeName

bind/genjava.go:378–383  ·  view source on GitHub ↗

javaTypeName returns the class name of a given Go type name. If the type name clashes with the package class name, an underscore is appended.

(n string)

Source from the content-addressed store, hash-verified

376// the type name clashes with the package class name, an underscore is
377// appended.
378func (g *JavaGen) javaTypeName(n string) string {
379 if n == JavaClassName(g.Pkg) {
380 return n + "_"
381 }
382 return n
383}
384
385func (g *JavaGen) javadoc(doc string) {
386 if doc == "" {

Callers 11

ClassNamesMethod · 0.95
genStructMethod · 0.95
genInterfaceMethod · 0.95
javaTypeMethod · 0.95
genJNIFuncSignatureMethod · 0.95
genJNIFieldMethod · 0.95
genJNIVarMethod · 0.95
genJNIConstructorMethod · 0.95
jniSigTypeMethod · 0.95
GenCMethod · 0.95
GenJavaMethod · 0.95

Calls 1

JavaClassNameFunction · 0.85

Tested by

no test coverage detected