private Object invokeMethodOneArg()

in src/main/java/pemja/core/PythonInterpreter.java [222:244]


    private Object invokeMethodOneArg(String obj, String method, Object arg) {
        if (arg instanceof String) {
            return invokeMethodOneArgString(tState, obj, method, (String) arg);
        } else if (arg instanceof Boolean) {
            return invokeMethodOneArgBoolean(tState, obj, method, (Boolean) arg);
        } else if (arg instanceof Integer) {
            return invokeMethodOneArgInt(tState, obj, method, (Integer) arg);
        } else if (arg instanceof Float) {
            return invokeMethodOneArgDouble(tState, obj, method, (Float) arg);
        } else if (arg instanceof Double) {
            return invokeMethodOneArgDouble(tState, obj, method, (Double) arg);
        } else if (arg instanceof Long) {
            return invokeMethodOneArgLong(tState, obj, method, (Long) arg);
        } else if (arg instanceof Character) {
            return invokeMethodOneArgString(tState, obj, method, String.valueOf((char) arg));
        } else if (arg instanceof Byte) {
            return invokeMethodOneArgInt(tState, obj, method, (Byte) arg);
        } else if (arg instanceof Short) {
            return invokeMethodOneArgInt(tState, obj, method, (Short) arg);
        } else {
            return invokeMethodOneArgObject(tState, obj, method, arg);
        }
    }