org.python.core.PyReflectedFunction Java Examples

The following examples show how to use org.python.core.PyReflectedFunction. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JIntrospect.java    From MeteoInfo with GNU Lesser General Public License v3.0 5 votes vote down vote up
private boolean ispython(Object object){
    if (object instanceof Class)
        return false;
    else if (object instanceof Object)
        return false;
    else if (object instanceof PyReflectedFunction)
        return false;
    else
        return true;
}
 
Example #2
Source File: JIntrospect.java    From MeteoInfo with GNU Lesser General Public License v3.0 5 votes vote down vote up
private boolean ispython(Object object){
    if (object instanceof Class)
        return false;
    else if (object instanceof Object)
        return false;
    else if (object instanceof PyReflectedFunction)
        return false;
    else
        return true;
}
 
Example #3
Source File: PythonExecutor.java    From score with Apache License 2.0 5 votes vote down vote up
private boolean keyIsExcluded(String key, PyObject value) {
    return (key.startsWith("__") && key.endsWith("__")) ||
            value instanceof PyFile ||
            value instanceof PyModule ||
            value instanceof PyFunction ||
            value instanceof PySystemState ||
            value instanceof PyClass ||
            value instanceof PyType ||
            value instanceof PyReflectedFunction;
}