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

Method ClassNames

bind/genjava.go:201–210  ·  view source on GitHub ↗

ClassNames returns the list of names of the generated Java classes and interfaces.

()

Source from the content-addressed store, hash-verified

199
200// ClassNames returns the list of names of the generated Java classes and interfaces.
201func (g *JavaGen) ClassNames() []string {
202 var names []string
203 for _, s := range g.structs {
204 names = append(names, g.javaTypeName(s.obj.Name()))
205 }
206 for _, iface := range g.interfaces {
207 names = append(names, g.javaTypeName(iface.obj.Name()))
208 }
209 return names
210}
211
212func (g *JavaGen) GenClass(idx int) error {
213 ns := len(g.structs)

Callers 3

TestGenJavaFunction · 0.95
TestCustomPrefixFunction · 0.95
genPkgFunction · 0.80

Calls 1

javaTypeNameMethod · 0.95

Tested by 2

TestGenJavaFunction · 0.76
TestCustomPrefixFunction · 0.76