Пример #1
0
func size(env *gojvm.Environment, obj *gojvm.Object) (len int, err error) {
	len, err = obj.CallInt(env, false, "size")
	if err != nil {
		return
	}
	return
}
Пример #2
0
func (g *JavaToGoInt) Convert(obj *gojvm.Object) (err error) {
	v, err := obj.CallInt(g.env, false, "intValue")
	if err != nil {
		return
	}
	*g.intPtr = v
	return
}