pyinstance.java

来自「tinyos最新版」· Java 代码 · 共 1,444 行 · 第 1/4 页

JAVA
1,444
字号
        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__mod__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__mod__", o2);            else                return o1._mod(o2);        }    }    /**     * Implements the __rmod__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __rmod__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__rmod__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__rmod__", o2);            else                return o2._mod(o1);        }    }    /**     * Implements the __imod__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __imod__(PyObject o) {        PyObject ret = invoke_ex("__imod__", o);        if (ret != null)            return ret;        return super.__imod__(o);    }    /**     * Implements the __divmod__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __divmod__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__divmod__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__divmod__", o2);            else                return o1._divmod(o2);        }    }    /**     * Implements the __rdivmod__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __rdivmod__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__rdivmod__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__rdivmod__", o2);            else                return o2._divmod(o1);        }    }    /**     * Implements the __pow__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __pow__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__pow__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__pow__", o2);            else                return o1._pow(o2);        }    }    /**     * Implements the __rpow__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __rpow__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__rpow__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__rpow__", o2);            else                return o2._pow(o1);        }    }    /**     * Implements the __ipow__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __ipow__(PyObject o) {        PyObject ret = invoke_ex("__ipow__", o);        if (ret != null)            return ret;        return super.__ipow__(o);    }    /**     * Implements the __lshift__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __lshift__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__lshift__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__lshift__", o2);            else                return o1._lshift(o2);        }    }    /**     * Implements the __rlshift__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __rlshift__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__rlshift__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__rlshift__", o2);            else                return o2._lshift(o1);        }    }    /**     * Implements the __ilshift__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __ilshift__(PyObject o) {        PyObject ret = invoke_ex("__ilshift__", o);        if (ret != null)            return ret;        return super.__ilshift__(o);    }    /**     * Implements the __rshift__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __rshift__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__rshift__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__rshift__", o2);            else                return o1._rshift(o2);        }    }    /**     * Implements the __rrshift__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __rrshift__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__rrshift__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__rrshift__", o2);            else                return o2._rshift(o1);        }    }    /**     * Implements the __irshift__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __irshift__(PyObject o) {        PyObject ret = invoke_ex("__irshift__", o);        if (ret != null)            return ret;        return super.__irshift__(o);    }    /**     * Implements the __and__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __and__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__and__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__and__", o2);            else                return o1._and(o2);        }    }    /**     * Implements the __rand__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __rand__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__rand__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__rand__", o2);            else                return o2._and(o1);        }    }    /**     * Implements the __iand__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __iand__(PyObject o) {        PyObject ret = invoke_ex("__iand__", o);        if (ret != null)            return ret;        return super.__iand__(o);    }    /**     * Implements the __or__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __or__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__or__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__or__", o2);            else                return o1._or(o2);        }    }    /**     * Implements the __ror__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __ror__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__ror__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__ror__", o2);            else                return o2._or(o1);        }    }    /**     * Implements the __ior__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __ior__(PyObject o) {        PyObject ret = invoke_ex("__ior__", o);        if (ret != null)            return ret;        return super.__ior__(o);    }    /**     * Implements the __xor__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __xor__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__xor__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__xor__", o2);            else                return o1._xor(o2);        }    }    /**     * Implements the __rxor__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __rxor__(PyObject o) {        Object ctmp = __coerce_ex__(o);        if (ctmp == null || ctmp == Py.None)            return invoke_ex("__rxor__", o);        else {            PyObject o1 = ((PyObject[])ctmp)[0];            PyObject o2 = ((PyObject[])ctmp)[1];            if (this == o1) // Prevent recusion if __coerce__ return self                return invoke_ex("__rxor__", o2);            else                return o2._xor(o1);        }    }    /**     * Implements the __ixor__ method by looking it up     * in the instance's dictionary and calling it if it is found.     **/    public PyObject __ixor__(PyObject o) {        PyObject ret = invoke_ex("__ixor__", o);        if (ret != null)            return ret;        return super.__ixor__(o);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?