Code example for Field

Methods: get, getModifiers

0
    } 
 
    @Override 
    public PyObject _doget(PyObject self) {
        Object iself = null;
        if (!Modifier.isStatic(field.getModifiers())) {
            if (self == null) {
                return this;
            } 
            iself = self.getJavaProxy();
            if (iself == null) {
                iself = self;
            } 
        } 
        Object value;
 
        try { 
            value = field.get(iself);
        } catch (IllegalAccessException exc) {
            throw Py.JavaError(exc);
        } 
 
        return Py.java2py(value);