(idx int)
| 210 | } |
| 211 | |
| 212 | func (g *JavaGen) GenClass(idx int) error { |
| 213 | ns := len(g.structs) |
| 214 | if idx < ns { |
| 215 | s := g.structs[idx] |
| 216 | g.genStruct(s) |
| 217 | } else { |
| 218 | iface := g.interfaces[idx-ns] |
| 219 | g.genInterface(iface) |
| 220 | } |
| 221 | if len(g.err) > 0 { |
| 222 | return g.err |
| 223 | } |
| 224 | return nil |
| 225 | } |
| 226 | |
| 227 | func (g *JavaGen) genProxyImpl(name string) { |
| 228 | g.Printf("private final int refnum;\n\n") |